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:
Diffstat (limited to 'winsup/cygwin/sync.cc')
-rw-r--r--winsup/cygwin/sync.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/sync.cc b/winsup/cygwin/sync.cc
index d8b3d8f54..821c214f7 100644
--- a/winsup/cygwin/sync.cc
+++ b/winsup/cygwin/sync.cc
@@ -33,7 +33,8 @@ muto::grab ()
muto *
muto::init (const char *s)
{
- char *already_exists = (char *) InterlockedExchangePointer (&name, s);
+ char *already_exists = (char *) InterlockedExchangePointer ((PVOID *) &name,
+ (PVOID) s);
if (already_exists)
while (!bruteforce)
yield ();