diff --git a/reactos/base/applications/regedt32/regedt32.c b/reactos/base/applications/regedt32/regedt32.c index a7355e53100..8fc8cdd15d9 100644 --- a/reactos/base/applications/regedt32/regedt32.c +++ b/reactos/base/applications/regedt32/regedt32.c @@ -3,6 +3,8 @@ #include #include +#define REGEDIT _T("regedit.exe") + int WINAPI _tWinMain(HINSTANCE hCurInst, HINSTANCE hPrevInst, LPTSTR lpsCmdLine, int nCmdShow) { @@ -10,9 +12,13 @@ int WINAPI _tWinMain(HINSTANCE hCurInst, HINSTANCE hPrevInst, if(GetWindowsDirectory(szPath, MAX_PATH)) { - PathAppend(szPath, _T("regedit.exe")); + PathAppend(szPath, REGEDIT); ShellExecute(NULL, NULL, szPath, lpsCmdLine, NULL, nCmdShow); } + else + { + ShellExecute(NULL, NULL, REGEDIT, lpsCmdLine, NULL, nCmdShow); + } return 0; }