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

This commit is contained in:
Gerald Pfeifer 2011-05-27 23:42:11 +02:00 committed by Alexandre Julliard
parent 968c8688c4
commit 4a0a1d19f8

View File

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