imm32: Simplify find_window where we do not need to consider the return value of EnumChildWindows.
Gerald Pfeifer
gerald at pfeifer.com
Fri May 27 16:42:11 CDT 2011
According to Microsoft's documentation the return value of
EnumChildWindows is unused. So, don't extract it to begin with. ;-)
Gerald
---
dlls/comdlg32/tests/itemdlg.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/comdlg32/tests/itemdlg.c b/dlls/comdlg32/tests/itemdlg.c
index 6663936..208ec8c 100644
--- a/dlls/comdlg32/tests/itemdlg.c
+++ b/dlls/comdlg32/tests/itemdlg.c
@@ -1290,9 +1290,8 @@ static BOOL CALLBACK find_window_callback(HWND hwnd, LPARAM lparam)
static HWND find_window(HWND parent, LPCWSTR class, LPCWSTR text)
{
struct fw_arg arg = {class, text, NULL};
- BOOL br;
- br = EnumChildWindows(parent, find_window_callback, (LPARAM)&arg);
+ EnumChildWindows(parent, find_window_callback, (LPARAM)&arg);
return arg.hwnd_res;
}
--
1.7.4.1
More information about the wine-patches
mailing list