filedialog initial dir fix
Rein Klazes
rklazes at xs4all.nl
Wed Jun 2 09:14:20 CDT 2004
Hi,
Since the latest file handling function SetCurrentDirectory(path)
correctly returns an error on an empty path where it returned success
before.
FILEDLG_ScanDir() depended on this behavior in such a way that now the
initial dir does not show any files until the dir is changed.
Changelog:
dlls/commdlg : filedlg16.c
In FILEDLG_ScanDir do not try to set the current directory to a
path that is empty.
Rein.
--
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/dlls/commdlg/filedlg16.c 2004-04-27 07:34:12.000000000 +0200
+++ mywine/dlls/commdlg/filedlg16.c 2004-06-02 16:03:23.000000000 +0200
@@ -300,7 +300,7 @@
HCURSOR hCursorWait, oldCursor;
TRACE("Trying to change to %s\n", debugstr_w(newPath));
- if ( !SetCurrentDirectoryW( newPath ))
+ if ( newPath[0] && !SetCurrentDirectoryW( newPath ))
return FALSE;
lstrcpynW(buffer, newPath, sizeof(buffer)/sizeof(WCHAR));
More information about the wine-patches
mailing list