To 0 and not to NULL, that is the answer

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7287 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2021-07-28 15:07:19 +00:00
parent 50ef1d3369
commit 0c964dbf0c

View file

@ -182,7 +182,7 @@ void PlayAppSoundAsync(LPCSTR SoundName, int MBFallback) {
PLAYAPPSOUNDDATA *p = (PLAYAPPSOUNDDATA*) MemAlloc(sizeof(PLAYAPPSOUNDDATA));
if (p) {
p->SoundName = SoundName, p->MBFallback = MBFallback; // Note: The string must be valid until the sound has started because we don't copy it
HANDLE hThread = CreateThread(NULL, 0, PlayAppSoundProc, p, 0, SupportsW9X() ? &tid : (tid, NULL));
HANDLE hThread = CreateThread(NULL, 0, PlayAppSoundProc, p, 0, SupportsW9X() ? &tid : 0);
if (hThread) CloseHandle(hThread); else PlayAppSoundProc(p);
}
}