comdlg32: Don't use BOOL constants for regular integer type.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Nikolay Sivov 2016-01-10 21:12:36 +03:00 committed by Alexandre Julliard
parent 509831c027
commit 2f6393bfa0
1 changed files with 2 additions and 2 deletions

View File

@ -370,13 +370,13 @@ static UINT get_file_name(FileDialogImpl *This, LPWSTR *str)
lstrcpyW(*str, This->set_filename);
return len;
}
return FALSE;
return 0;
}
len = SendMessageW(hwnd_edit, WM_GETTEXTLENGTH, 0, 0);
*str = CoTaskMemAlloc(sizeof(WCHAR)*(len+1));
if(!*str)
return FALSE;
return 0;
SendMessageW(hwnd_edit, WM_GETTEXT, len+1, (LPARAM)*str);
return len;