From 0c964dbf0ca9d3982e96e7bd81c30584a2e711a8 Mon Sep 17 00:00:00 2001 From: anders_k Date: Wed, 28 Jul 2021 15:07:19 +0000 Subject: [PATCH] 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 --- Contrib/Makensisw/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contrib/Makensisw/utils.cpp b/Contrib/Makensisw/utils.cpp index be31fcce..09009eda 100644 --- a/Contrib/Makensisw/utils.cpp +++ b/Contrib/Makensisw/utils.cpp @@ -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); } }