* create a directory "system" under %SystemRoot% to make dumb apps work

* fixes bug 879

svn path=/trunk/; revision=23581
This commit is contained in:
Johannes Anderwald 2006-08-14 17:40:41 +00:00
parent 546f463b79
commit b94a1c980f

View file

@ -488,7 +488,7 @@ InstallReactOS (HINSTANCE hInstance)
{
TCHAR sAccessories[256];
TCHAR sGames[256];
TCHAR szBuffer[MAX_PATH];
# if 0
OutputDebugStringA ("InstallReactOS() called\n");
@ -627,6 +627,13 @@ InstallReactOS (HINSTANCE hInstance)
CreateTempDir(L"TEMP");
CreateTempDir(L"TMP");
if (GetWindowsDirectory(szBuffer, sizeof(szBuffer) / sizeof(TCHAR)))
{
PathAddBackslash(szBuffer);
_tcscat(szBuffer, _T("system"));
CreateDirectory(szBuffer, NULL);
}
hSysSetupInf = SetupOpenInfFileW(L"syssetup.inf",
NULL,
INF_STYLE_WIN4,