[ros-diffs] [greatlrd] 24753: 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.

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Tue Nov 14 17:50:47 CET 2006


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/screensaver.c?rev=24753&r1=24752&r2=24753&view=diff
==============================================================================
--- 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);




More information about the Ros-diffs mailing list