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>
This commit is contained in:
parent
509831c027
commit
2f6393bfa0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue