Author: greatlrd
Date: Fri Jul 14 02:38:30 2006
New Revision: 23053
URL:
http://svn.reactos.org/svn/reactos?rev=23053&view=rev
Log:
last fix for getting screensaver working on livecd it is rugh hack
Modified:
trunk/reactos/subsystems/win32/csrss/win32csr/conio.c
Modified: trunk/reactos/subsystems/win32/csrss/win32csr/conio.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/win32csr/conio.c (original)
+++ trunk/reactos/subsystems/win32/csrss/win32csr/conio.c Fri Jul 14 02:38:30 2006
@@ -3379,7 +3379,21 @@
}
else
{
- DPRINT1("CsrStartScreenSaver : failed 0x%08X\n", result);
+ GetSystemDirectoryW(szCmdline,MAX_PATH);
+ wprintf(szCmdline, L"%s\\%s /s",szCmdline,szBuffer);
+ DPRINT1("CsrStartScreenSaver : OK %S, Name %S\n", szCmdline, szBuffer);
+ ZeroMemory( &si, sizeof(si) );
+ si.cb = sizeof(si);
+ ZeroMemory( &pi, sizeof(pi) );
+ if(CreateProcessW( NULL, szCmdline, NULL, NULL, FALSE, 0,
NULL,NULL,&si, &pi ))
+ {
+ CloseHandle( pi.hProcess );
+ CloseHandle( pi.hThread );
+ }
+ else
+ {
+ DPRINT1("CsrStartScreenSaver : failed 0x%08X\n", result);
+ }
}
RegCloseKey(hKey);
}