Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2022-08-22 18:58:53 +0300
committerCorinna Vinschen <corinna@vinschen.de>2022-08-22 18:58:53 +0300
commitc3e92052bbaa861d35646e7f9ceb813c8be26a64 (patch)
treee36bc0c2a1c1092604274356ce30ca0120d2f965
parent88e2f2aad115f9dc59e336d3d176ab88161db9e3 (diff)
Cygwin: smallprint.cc: Drop HEAP_ZERO_MEMORY
Leftover from testing. Reported-by: Noel Grandin <noelgrandin@gmail.com> Fixes: 07ec40170a32 ("Cygwin: smallprint.cc: Convert tmpbuf to lockless") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/smallprint.cc2
1 files changed, 1 insertions, 1 deletions
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;
}