mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:03:02 +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
1 changed files with 3 additions and 1 deletions
|
@ -338,9 +338,11 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
|
||||||
{
|
{
|
||||||
char * ptr;
|
char * ptr;
|
||||||
strcpy(pdir, psz);
|
strcpy(pdir, psz);
|
||||||
ptr = strrchr(pdir, '\\');
|
ptr = strrchr(pdir + 4, '\\');
|
||||||
if(ptr)
|
if(ptr)
|
||||||
ptr[0] = '\0';
|
ptr[0] = '\0';
|
||||||
|
else
|
||||||
|
pdir[3] = '\0';
|
||||||
}
|
}
|
||||||
if (ShellExecuteA(NULL, "open", psz, NULL, pdir, SW_SHOWNORMAL) < (HINSTANCE)33)
|
if (ShellExecuteA(NULL, "open", psz, NULL, pdir, SW_SHOWNORMAL) < (HINSTANCE)33)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue