Fixes bug #781 partly, we still need a fix in "control.exe" (see my comment in the bug report)
svn path=/trunk/; revision=33492
LPWSTR extraPmts = NULL;
int quoted = 0;
BOOL spSet = FALSE;
+ HANDLE hMutex;
+ hMutex = CreateMutex(NULL, FALSE, (LPCTSTR) wszCmd);
+ if ((!hMutex) || (GetLastError() == ERROR_ALREADY_EXISTS))
+ return NULL;
buffer = HeapAlloc(GetProcessHeap(), 0, (lstrlenW(wszCmd) + 1) * sizeof(*wszCmd));
if (!buffer) return;
}
Control_UnloadApplet(applet);
}
+ ReleaseMutex(hMutex);
HeapFree(GetProcessHeap(), 0, buffer);
}