From 9d2d5eae2d823470dacb013122776a94ff34a70c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 14 Feb 2007 14:43:50 +0100 Subject: [PATCH] shell32: Don't wrap SHELL_ConfirmIDs in an assert. Fixed return value. --- dlls/shell32/shlfileop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c index 07f19e08ca7..5410c97a71e 100644 --- a/dlls/shell32/shlfileop.c +++ b/dlls/shell32/shlfileop.c @@ -282,9 +282,9 @@ static BOOL SHELL_ConfirmDialogW(HWND hWnd, int nKindOfDialog, LPCWSTR szDir, FI assert(nKindOfDialog >= 0 && nKindOfDialog < 32); if (op && (op->dwYesToAllMask & (1 << nKindOfDialog))) - return IDYES; + return TRUE; - assert(SHELL_ConfirmIDs(nKindOfDialog, &ids)); + if (!SHELL_ConfirmIDs(nKindOfDialog, &ids)) return FALSE; LoadStringW(shell32_hInstance, ids.caption_resource_id, szCaption, sizeof(szCaption)/sizeof(WCHAR)); LoadStringW(shell32_hInstance, ids.text_resource_id, szText, sizeof(szText)/sizeof(WCHAR));