[ros-diffs] [janderwald] 23581: * create a directory "system" under %SystemRoot% to make dumb apps work * fixes bug 879

janderwald at svn.reactos.org janderwald at svn.reactos.org
Mon Aug 14 19:40:42 CEST 2006


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.c?rev=23581&r1=23580&r2=23581&view=diff
==============================================================================
--- 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,




More information about the Ros-diffs mailing list