[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:
Katayama Hirofumi MZ 2020-08-14 23:40:10 +09:00 committed by GitHub
parent 960511094b
commit 90456e54a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}