Alex Villacís Lasso : user32: Fix change-drive in Win3.1-style file open dialog.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 20 16:08:47 CDT 2007


Module: wine
Branch: master
Commit: 89939b5a2b21a37caaaccd77292f74b2aced4790
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=89939b5a2b21a37caaaccd77292f74b2aced4790

Author: Alex Villacís Lasso <a_villacis at palosanto.com>
Date:   Sun Aug 19 17:39:35 2007 -0500

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

---

 dlls/user32/dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c
index b43acf0..9607dcc 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)




More information about the wine-cvs mailing list