cmd: Avoid unreachable code (Coverity).

This commit is contained in:
Frédéric Delanoy 2012-01-03 18:29:40 +01:00 committed by Alexandre Julliard
parent 35cdb8bb22
commit 0b358703ca
1 changed files with 1 additions and 4 deletions

View File

@ -725,8 +725,6 @@ static WCHAR *WCMD_expand_envvar(WCHAR *start,
WCMD_strsubstW(start, endOfVar + 1, startCopy, substrlength);
}
return start;
/* search and replace manipulation */
} else {
WCHAR *equalspos = strstrW(colonpos, equalW);
@ -786,9 +784,8 @@ static WCHAR *WCMD_expand_envvar(WCHAR *start,
HeapFree(GetProcessHeap(), 0, s);
HeapFree(GetProcessHeap(), 0, searchIn);
HeapFree(GetProcessHeap(), 0, searchFor);
return start;
}
return start+1;
return start;
}
/*****************************************************************************