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... ============================================================================== --- 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;