From: Bernd Herd <codeberg(a)herdsoft.com> --- dlls/gphoto2.ds/ui.c | 4 ++-- dlls/sane.ds/ui.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/gphoto2.ds/ui.c b/dlls/gphoto2.ds/ui.c index a385b1139cb..e837527ee0f 100644 --- a/dlls/gphoto2.ds/ui.c +++ b/dlls/gphoto2.ds/ui.c @@ -127,7 +127,7 @@ static void PopulateImageList(HIMAGELIST *iList, HWND list) IMAGE_BITMAP, (LPARAM)static_bitmap); RedrawWindow(progress_dialog,NULL,NULL,RDW_INTERNALPAINT|RDW_UPDATENOW|RDW_ALLCHILDREN); } - EndDialog(progress_dialog,0); + DestroyWindow(progress_dialog); } static INT_PTR CALLBACK DialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) @@ -239,7 +239,7 @@ HWND TransferringDialogBox(HWND dialog, LONG progress) if (progress == -1) { - EndDialog(dialog,0); + DestroyWindow(dialog); return NULL; } diff --git a/dlls/sane.ds/ui.c b/dlls/sane.ds/ui.c index 25a1cf33970..37f10f97f33 100644 --- a/dlls/sane.ds/ui.c +++ b/dlls/sane.ds/ui.c @@ -924,7 +924,7 @@ HWND ScanningDialogBox(HWND dialog, LONG progress) if (progress == -1) { - EndDialog(dialog,0); + DestroyWindow(dialog); return NULL; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9329