mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:45:41 +00:00
last fix for getting screensaver working on livecd it is rugh hack
svn path=/trunk/; revision=23053
This commit is contained in:
parent
d0bbf9199b
commit
85a2492f52
1 changed files with 15 additions and 1 deletions
|
@ -3379,7 +3379,21 @@ CSR_API(CsrStartScreenSaver)
|
|||
}
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue