Commit 43dfe763 authored by Thomas Faller's avatar Thomas Faller Committed by Alexandre Julliard

cmd: Fix access of uninitialized memory.

parent 3f83b788
...@@ -3313,7 +3313,8 @@ void WCMD_setshow_default (const WCHAR *args) { ...@@ -3313,7 +3313,8 @@ void WCMD_setshow_default (const WCHAR *args) {
WINE_TRACE("Request change to directory '%s'\n", wine_dbgstr_w(args)); WINE_TRACE("Request change to directory '%s'\n", wine_dbgstr_w(args));
/* Skip /D and trailing whitespace if on the front of the command line */ /* Skip /D and trailing whitespace if on the front of the command line */
if (CompareStringW(LOCALE_USER_DEFAULT, if (strlenW(args) >= 2 &&
CompareStringW(LOCALE_USER_DEFAULT,
NORM_IGNORECASE | SORT_STRINGSORT, NORM_IGNORECASE | SORT_STRINGSORT,
args, 2, parmD, -1) == CSTR_EQUAL) { args, 2, parmD, -1) == CSTR_EQUAL) {
args += 2; args += 2;
......
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