[ros-diffs] [sginsberg] 35862: - When creating a mutex, and you intend to release it without waiting for it, then you should specify so in bInitialOwner

sginsberg at svn.reactos.org sginsberg at svn.reactos.org
Wed Sep 3 14:38:24 CEST 2008


Author: sginsberg
Date: Mon Sep  1 22:42:21 2008
New Revision: 35862

URL: http://svn.reactos.org/svn/reactos?rev=35862&view=rev
Log:
- When creating a mutex, and you intend to release it without waiting for it, then you should specify so in bInitialOwner

Modified:
    trunk/reactos/dll/win32/shell32/control.c

Modified: trunk/reactos/dll/win32/shell32/control.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/control.c?rev=35862&r1=35861&r2=35862&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/control.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/control.c [iso-8859-1] Mon Sep  1 22:42:21 2008
@@ -357,7 +357,7 @@
 
     memcpy(szName, (LPVOID)ptr, Length * sizeof(WCHAR));
     szName[Length] = L'\0';
-    hMutex = CreateMutexW(NULL, FALSE, szName);
+    hMutex = CreateMutexW(NULL, TRUE, szName);
 
  	if ((!hMutex) || (GetLastError() == ERROR_ALREADY_EXISTS))
         return;



More information about the Ros-diffs mailing list