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:
Hermès Bélusca-Maïto 2014-04-28 20:12:07 +00:00
parent fe7035f7a7
commit 94f8fdd00f

View file

@ -58,7 +58,7 @@ PrintAlias (VOID)
DWORD len;
len = GetConsoleAliasesLength(_T("cmd.exe"));
if (len <= 0)
if (len == 0)
return;
/* allocate memory for an extra \0 char to make parsing easier */