[ros-diffs] [janderwald] 37296: - Fix directory parameter for files lying in the root of a drive (C: -> C:\)

janderwald at svn.reactos.org janderwald at svn.reactos.org
Tue Nov 11 23:24:14 CET 2008


Author: janderwald
Date: Tue Nov 11 16:24:14 2008
New Revision: 37296

URL: http://svn.reactos.org/svn/reactos?rev=37296&view=rev
Log:
- Fix directory parameter for files lying in the root of a drive (C: -> C:\)

Modified:
    trunk/reactos/dll/win32/shell32/dialogs.c

Modified: trunk/reactos/dll/win32/shell32/dialogs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/dialogs.c?rev=37296&r1=37295&r2=37296&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/dialogs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/dialogs.c [iso-8859-1] Tue Nov 11 16:24:14 2008
@@ -338,9 +338,11 @@
                             {
                             char * ptr;
                             strcpy(pdir, psz);
-                            ptr = strrchr(pdir, '\\');
+                            ptr = strrchr(pdir + 4, '\\');
                             if(ptr)
                                 ptr[0] = '\0';
+                            else
+                                pdir[3] = '\0';
                             }
                         if (ShellExecuteA(NULL, "open", psz, NULL, pdir, SW_SHOWNORMAL) < (HINSTANCE)33)
                             {



More information about the Ros-diffs mailing list