- Fix directory parameter for files lying in the root of a drive (C: -> C:\)

svn path=/trunk/; revision=37296
This commit is contained in:
Johannes Anderwald 2008-11-11 22:24:14 +00:00
parent 977ba0d1f6
commit 877246b90c

View file

@ -338,9 +338,11 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
{
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)
{