Commit c9877677 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

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

file specification.
parent 553e3c98
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment