/WAIT works again
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1712 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
aece35f624
commit
8300eae52e
2 changed files with 6 additions and 1 deletions
|
@ -105,9 +105,14 @@ extern "C" void __declspec(dllexport) Destroy(HWND hwndParent, int string_size,
|
|||
}
|
||||
|
||||
extern "C" void __declspec(dllexport) Sound(HWND hwndParent, int string_size, char *variables, stack_t **stacktop) {
|
||||
DWORD flags = SND_FILENAME|SND_NODEFAULT;
|
||||
g_stacktop=stacktop;
|
||||
popstring(temp);
|
||||
PlaySound(temp, 0, SND_ASYNC|SND_FILENAME|SND_NODEFAULT);
|
||||
if (lstrcmp(temp, "/WAIT"))
|
||||
flags |= SND_ASYNC;
|
||||
else
|
||||
popstring(temp);
|
||||
PlaySound(temp, 0, flags);
|
||||
}
|
||||
|
||||
BOOL WINAPI _DllMainCRTStartup(HINSTANCE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) {
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue