Fix return value to 16 bits for 16 bit hook; remove leading space for
file specification.
This commit is contained in:
parent
553e3c98d1
commit
c987767760
|
@ -293,7 +293,7 @@ static BOOL FILEDLG_CallWindowProc(LFSPRIVATE lfs, UINT wMsg, WPARAM wParam,
|
||||||
{
|
{
|
||||||
if (lfs->ofn16)
|
if (lfs->ofn16)
|
||||||
{
|
{
|
||||||
return (BOOL) CallWindowProc16(
|
return (BOOL16) CallWindowProc16(
|
||||||
(WNDPROC16)lfs->ofn16->lpfnHook, lfs->hwnd,
|
(WNDPROC16)lfs->ofn16->lpfnHook, lfs->hwnd,
|
||||||
(UINT16)wMsg, (WPARAM16)wParam, lParam);
|
(UINT16)wMsg, (WPARAM16)wParam, lParam);
|
||||||
}
|
}
|
||||||
|
@ -338,6 +338,7 @@ static BOOL FILEDLG_ScanDir(HWND hWnd, LPWSTR newPath)
|
||||||
while (filter) {
|
while (filter) {
|
||||||
scptr = strchrW(filter, ';');
|
scptr = strchrW(filter, ';');
|
||||||
if (scptr) *scptr = 0;
|
if (scptr) *scptr = 0;
|
||||||
|
while (*filter == ' ') filter++;
|
||||||
TRACE("Using file spec %s\n", debugstr_w(filter));
|
TRACE("Using file spec %s\n", debugstr_w(filter));
|
||||||
if (SendMessageW(hdlg, LB_DIR, 0, (LPARAM)filter) == LB_ERR)
|
if (SendMessageW(hdlg, LB_DIR, 0, (LPARAM)filter) == LB_ERR)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue