mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +00:00
[CMD]
GetConsoleAliasesLength returns a DWORD (and the len variable *is* a DWORD). Do not check for negative values. Patch by André Guibert de Bruet. CORE-7964 #resolve #comment Fixed in revision 63037, cheers! svn path=/trunk/; revision=63037
This commit is contained in:
parent
fe7035f7a7
commit
94f8fdd00f
|
@ -58,7 +58,7 @@ PrintAlias (VOID)
|
||||||
DWORD len;
|
DWORD len;
|
||||||
|
|
||||||
len = GetConsoleAliasesLength(_T("cmd.exe"));
|
len = GetConsoleAliasesLength(_T("cmd.exe"));
|
||||||
if (len <= 0)
|
if (len == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* allocate memory for an extra \0 char to make parsing easier */
|
/* allocate memory for an extra \0 char to make parsing easier */
|
||||||
|
|
Loading…
Reference in a new issue