From 92a9b5bb641e9ae559155b419907c62c1dc4bbc4 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 20 Sep 2002 21:03:22 +0000 Subject: [PATCH] Now actually exits from the message loop git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1090 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Splash/splash.c | 6 ++++-- Plugins/splash.dll | Bin 4096 -> 4096 bytes 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Contrib/Splash/splash.c b/Contrib/Splash/splash.c index 61f37063..8910eb00 100644 --- a/Contrib/Splash/splash.c +++ b/Contrib/Splash/splash.c @@ -101,12 +101,14 @@ void __declspec(dllexport) show(HWND hwndParent, int string_size, char *variable g_hbm=LoadImage(NULL,fn,IMAGE_BITMAP,0,0,LR_CREATEDIBSECTION|LR_LOADFROMFILE); if (g_hbm) { + HWND myWnd; + PlaySound(fn2,NULL,SND_ASYNC|SND_FILENAME|SND_NODEFAULT); - CreateWindowEx(WS_EX_TOOLWINDOW,classname,classname, + myWnd = CreateWindowEx(WS_EX_TOOLWINDOW,classname,classname, 0,0,0,0,0,(HWND)hwndParent,NULL,g_hInstance,NULL); - while (GetMessage(&msg,NULL,0,0)) + while (IsWindow(myWnd) && GetMessage(&msg,myWnd,0,0)) { DispatchMessage(&msg); } diff --git a/Plugins/splash.dll b/Plugins/splash.dll index dee960f13727897f9b731ee777d9faf9e5591b38..225d5f22d3f99c90284fc4463388e2504558b0d1 100644 GIT binary patch delta 195 zcmV;!06hPIAb=o{-~zRqk>d6Nkh9qVTmlN*0ssJwMWj&Z)0000G6_8a0029~4~{jH zdITH+wv(3xD*^12!vt6Xlam|;LLpOAiA5Ap>ko}ZnGcPkWGe9#>GgmWYGioz>Gk-IPGqZ65fB|0^N7VoT delta 190 zcmV;v073tNAb=o{-~u?Ak>d6Nh_l%NTmlNz0ssJwMWj&Z%acC@G6^*S0029~4~{L9 zdITH+u9KGpD*@z_!vt6Xi<2A$LK*7{jYZ^8{}pT?01#7CjYZ^BQ2*A2z;)@fe+7X8 zkuV6d2vh?CIGM9n3*rJuW-)#-gfWUSk};Vv$}!L};4$qnAu=j5F)}(bQZigJYcg>% scQT|hu`<3g?K1N+12YaYCo?TGI5S5xPcvLIVl#3xcQb%9vvC4|0SPZdG5`Po