mirror of
https://github.com/reactos/reactos.git
synced 2024-08-02 17:40:58 +00:00
- Fix directory parameter for files lying in the root of a drive (C: -> C:\)
svn path=/trunk/; revision=37296
This commit is contained in:
parent
977ba0d1f6
commit
877246b90c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue