user32: Fix change-drive in Win3.1-style file open dialog.
This commit is contained in:
parent
4d99a8182d
commit
89939b5a2b
|
@ -1736,6 +1736,7 @@ static INT DIALOG_DlgDirListW( HWND hDlg, LPWSTR spec, INT idLBox,
|
||||||
{
|
{
|
||||||
WCHAR *p, *p2;
|
WCHAR *p, *p2;
|
||||||
p = spec;
|
p = spec;
|
||||||
|
if ((p2 = strchrW( p, ':' ))) p = p2 + 1;
|
||||||
if ((p2 = strrchrW( p, '\\' ))) p = p2;
|
if ((p2 = strrchrW( p, '\\' ))) p = p2;
|
||||||
if ((p2 = strrchrW( p, '/' ))) p = p2;
|
if ((p2 = strrchrW( p, '/' ))) p = p2;
|
||||||
if (p != spec)
|
if (p != spec)
|
||||||
|
|
Loading…
Reference in New Issue