user32: Fix change-drive in Win3.1-style file open dialog.

This commit is contained in:
Alex Villacís Lasso 2007-08-19 17:39:35 -05:00 committed by Alexandre Julliard
parent 4d99a8182d
commit 89939b5a2b
1 changed files with 1 additions and 0 deletions

View File

@ -1736,6 +1736,7 @@ static INT DIALOG_DlgDirListW( HWND hDlg, LPWSTR spec, INT idLBox,
{
WCHAR *p, *p2;
p = spec;
if ((p2 = strchrW( p, ':' ))) p = p2 + 1;
if ((p2 = strrchrW( p, '\\' ))) p = p2;
if ((p2 = strrchrW( p, '/' ))) p = p2;
if (p != spec)