From c3e92052bbaa861d35646e7f9ceb813c8be26a64 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 22 Aug 2022 17:58:53 +0200 Subject: [PATCH] Cygwin: smallprint.cc: Drop HEAP_ZERO_MEMORY Leftover from testing. Reported-by: Noel Grandin Fixes: 07ec40170a32 ("Cygwin: smallprint.cc: Convert tmpbuf to lockless") Signed-off-by: Corinna Vinschen --- winsup/cygwin/smallprint.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/smallprint.cc b/winsup/cygwin/smallprint.cc index 0e8c6d9a9..1e89f1ce0 100644 --- a/winsup/cygwin/smallprint.cc +++ b/winsup/cygwin/smallprint.cc @@ -62,7 +62,7 @@ public: operator WCHAR * () { if (!buf) - buf = (PWCHAR) HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY, + buf = (PWCHAR) HeapAlloc (GetProcessHeap (), 0, NT_MAX_PATH * sizeof (WCHAR)); return buf; }