From 89939b5a2b21a37caaaccd77292f74b2aced4790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Villac=C3=ADs=20Lasso?= Date: Sun, 19 Aug 2007 17:39:35 -0500 Subject: [PATCH] user32: Fix change-drive in Win3.1-style file open dialog. --- dlls/user32/dialog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c index b43acf0d979..9607dcc6f1d 100644 --- a/dlls/user32/dialog.c +++ b/dlls/user32/dialog.c @@ -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)