adding a wcsstrlen to make msg "Unable to start , error" when no screensaver have been set.

I hope it is all check we need. hpousin if u dislike this check u are wellcome to remove it. 
 

svn path=/trunk/; revision=24788
This commit is contained in:
Magnus Olsen 2006-11-19 20:35:11 +00:00
parent 59f8fd9675
commit a919bba10c

View file

@ -274,7 +274,11 @@ StartScreenSaver(
if (bufferSize == 0)
goto cleanup;
szApplicationName[bufferSize] = 0; /* Terminate the string */
szApplicationName[bufferSize] = 0; /* Terminate the string */
if (wcslen(szApplicationName) == 0)
goto cleanup;
wsprintfW(szCommandLine, L"%s /s", szApplicationName);
TRACE("WL: Executing %S\n", szCommandLine);