Gerald Pfeifer : imm32: Simplify find_window where we do not need to consider the return value of EnumChildWindows .

Alexandre Julliard julliard at winehq.org
Mon May 30 12:41:16 CDT 2011


Module: wine
Branch: master
Commit: 4a0a1d19f8e1df51528846a3acba852164244b50
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4a0a1d19f8e1df51528846a3acba852164244b50

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Fri May 27 23:42:11 2011 +0200

imm32: Simplify find_window where we do not need to consider the return value of EnumChildWindows.

---

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




More information about the wine-cvs mailing list