Commit 9877b53b authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

cmd: Fix incorrect pointer comparison.

parent 141e33b8
...@@ -2131,7 +2131,7 @@ void WCMD_setshow_default (const WCHAR *command) { ...@@ -2131,7 +2131,7 @@ void WCMD_setshow_default (const WCHAR *command) {
if (*command != '"') *pos++ = *command; if (*command != '"') *pos++ = *command;
command++; command++;
} }
while (pos > command && (*(pos-1) == ' ' || *(pos-1) == '\t')) while (pos > string && (*(pos-1) == ' ' || *(pos-1) == '\t'))
pos--; pos--;
*pos = 0x00; *pos = 0x00;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment