Author: janderwald
Date: Mon Aug 14 21:40:41 2006
New Revision: 23581
URL:
http://svn.reactos.org/svn/reactos?rev=23581&view=rev
Log:
* create a directory "system" under %SystemRoot% to make dumb apps work
* fixes bug 879
Modified:
trunk/reactos/dll/win32/syssetup/install.c
Modified: trunk/reactos/dll/win32/syssetup/install.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/install…
==============================================================================
--- trunk/reactos/dll/win32/syssetup/install.c (original)
+++ trunk/reactos/dll/win32/syssetup/install.c Mon Aug 14 21:40:41 2006
@@ -488,7 +488,7 @@
{
TCHAR sAccessories[256];
TCHAR sGames[256];
-
+ TCHAR szBuffer[MAX_PATH];
# if 0
OutputDebugStringA ("InstallReactOS() called\n");
@@ -627,6 +627,13 @@
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,