mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[cmd/help]
do not call wcslen on uninitialized variable svn path=/trunk/; revision=64842
This commit is contained in:
parent
c453a6b8d7
commit
bd73779966
1 changed files with 3 additions and 3 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <winbase.h>
|
||||
#include <winuser.h>
|
||||
#include <wincon.h>
|
||||
#include <strsafe.h>
|
||||
|
||||
#include "help.h"
|
||||
#include "resource.h"
|
||||
|
@ -135,9 +136,8 @@ int wmain(int argc, WCHAR* argv[])
|
|||
/*
|
||||
* Run "<command> /?" in the current command processor.
|
||||
*/
|
||||
wcsncpy(CmdLine, argv[1], CMDLINE_LENGTH - wcslen(CmdLine));
|
||||
wcsncat(CmdLine, L" /?" , CMDLINE_LENGTH - wcslen(CmdLine));
|
||||
|
||||
StringCbPrintfW(CmdLine, sizeof(CmdLine), L"%ls /?", argv[1]);
|
||||
|
||||
_flushall();
|
||||
return _wsystem(CmdLine);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue