Author: greatlrd
Date: Tue Nov 14 19:50:47 2006
New Revision: 24753
URL:
http://svn.reactos.org/svn/reactos?rev=24753&view=rev
Log:
fixing Usurp bug repot in irc channel, if a screensaver does not exists it try execute a
no exiting screensaver it make reactos freze on real hw and in qemu, acoring Usurp. With
this change it does not longer freze and does not either try execute a no existing
screensaver. Thx Usurp for testing it.
Modified:
trunk/reactos/base/system/winlogon/screensaver.c
Modified: trunk/reactos/base/system/winlogon/screensaver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/scree…
==============================================================================
--- trunk/reactos/base/system/winlogon/screensaver.c (original)
+++ trunk/reactos/base/system/winlogon/screensaver.c Tue Nov 14 19:50:47 2006
@@ -272,6 +272,9 @@
&bufferSize);
if (rc != ERROR_SUCCESS || dwType != REG_SZ)
goto cleanup;
+
+ if (bufferSize <=4)
+ goto cleanup;
wsprintfW(szCommandLine, L"%s /s", szApplicationName);
TRACE("WL: Executing %S\n", szCommandLine);