cmd: Fix incorrect pointer comparison.

This commit is contained in:
Jason Edmeades 2012-09-04 23:40:43 +01:00 committed by Alexandre Julliard
parent 141e33b845
commit 9877b53b8c
1 changed files with 1 additions and 1 deletions

View File

@ -2131,7 +2131,7 @@ void WCMD_setshow_default (const WCHAR *command) {
if (*command != '"') *pos++ = *command;
command++;
}
while (pos > command && (*(pos-1) == ' ' || *(pos-1) == '\t'))
while (pos > string && (*(pos-1) == ' ' || *(pos-1) == '\t'))
pos--;
*pos = 0x00;