mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[APPWIZ] Don't hung up in Gecko download cancellation #3049
Do not call EndDialog outside the dialog procedure. CORE-14538
This commit is contained in:
committed by
GitHub
parent
960511094b
commit
90456e54a4
@@ -59,7 +59,7 @@ static const addon_info_t addons_info[] = {
|
||||
static const addon_info_t *addon;
|
||||
|
||||
static HWND install_dialog = NULL;
|
||||
static IBinding *download_binding;
|
||||
static IBinding *download_binding = NULL;
|
||||
|
||||
static WCHAR GeckoUrl[] = L"https://svn.reactos.org/amine/wine_gecko-2.40-x86.msi";
|
||||
|
||||
@@ -382,7 +382,7 @@ static DWORD WINAPI download_proc(PVOID arg)
|
||||
}
|
||||
|
||||
DeleteFileW(tmp_file);
|
||||
EndDialog(install_dialog, 0);
|
||||
PostMessageW(install_dialog, WM_COMMAND, IDCANCEL, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user