mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:02:58 +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
|
@ -3376,11 +3376,25 @@ CSR_API(CsrStartScreenSaver)
|
||||||
CloseHandle( pi.hProcess );
|
CloseHandle( pi.hProcess );
|
||||||
CloseHandle( pi.hThread );
|
CloseHandle( pi.hThread );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
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
|
else
|
||||||
{
|
{
|
||||||
DPRINT1("CsrStartScreenSaver : failed 0x%08X\n", result);
|
DPRINT1("CsrStartScreenSaver : failed 0x%08X\n", result);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue