Author: hbelusca
Date: Mon Apr 28 20:12:07 2014
New Revision: 63037
URL:
http://svn.reactos.org/svn/reactos?rev=63037&view=rev
Log:
[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!
Modified:
trunk/reactos/base/shell/cmd/alias.c
Modified: trunk/reactos/base/shell/cmd/alias.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/alias.c?rev…
==============================================================================
--- trunk/reactos/base/shell/cmd/alias.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/alias.c [iso-8859-1] Mon Apr 28 20:12:07 2014
@@ -58,7 +58,7 @@
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 */