mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:35:59 +00:00
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:
parent
59f8fd9675
commit
a919bba10c
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue