Fix return value to 16 bits for 16 bit hook; remove leading space for

file specification.
This commit is contained in:
Gerard Patel 2000-08-14 20:53:21 +00:00 committed by Alexandre Julliard
parent 553e3c98d1
commit c987767760
1 changed files with 2 additions and 1 deletions

View File

@ -293,7 +293,7 @@ static BOOL FILEDLG_CallWindowProc(LFSPRIVATE lfs, UINT wMsg, WPARAM wParam,
{
if (lfs->ofn16)
{
return (BOOL) CallWindowProc16(
return (BOOL16) CallWindowProc16(
(WNDPROC16)lfs->ofn16->lpfnHook, lfs->hwnd,
(UINT16)wMsg, (WPARAM16)wParam, lParam);
}
@ -338,6 +338,7 @@ static BOOL FILEDLG_ScanDir(HWND hWnd, LPWSTR newPath)
while (filter) {
scptr = strchrW(filter, ';');
if (scptr) *scptr = 0;
while (*filter == ' ') filter++;
TRACE("Using file spec %s\n", debugstr_w(filter));
if (SendMessageW(hdlg, LB_DIR, 0, (LPARAM)filter) == LB_ERR)
return FALSE;