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.…
==============================================================================
--- 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)
{