wcmd: Remove an unused variable (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2015-02-21 18:23:01 +01:00 committed by Alexandre Julliard
parent 17e565dbf9
commit b7c8b62bbf
1 changed files with 1 additions and 3 deletions

View File

@ -1046,7 +1046,6 @@ void WCMD_run_program (WCHAR *command, BOOL called)
WCHAR pathext[MAXSTRING]; WCHAR pathext[MAXSTRING];
WCHAR *firstParam; WCHAR *firstParam;
BOOL extensionsupplied = FALSE; BOOL extensionsupplied = FALSE;
BOOL launched = FALSE;
BOOL status; BOOL status;
DWORD len; DWORD len;
static const WCHAR envPath[] = {'P','A','T','H','\0'}; static const WCHAR envPath[] = {'P','A','T','H','\0'};
@ -1098,8 +1097,7 @@ void WCMD_run_program (WCHAR *command, BOOL called)
pathposn = pathtosearch; pathposn = pathtosearch;
WINE_TRACE("Searching in '%s' for '%s'\n", wine_dbgstr_w(pathtosearch), WINE_TRACE("Searching in '%s' for '%s'\n", wine_dbgstr_w(pathtosearch),
wine_dbgstr_w(stemofsearch)); wine_dbgstr_w(stemofsearch));
while (!launched && pathposn) { while (pathposn) {
WCHAR thisDir[MAX_PATH] = {'\0'}; WCHAR thisDir[MAX_PATH] = {'\0'};
WCHAR *pos = NULL; WCHAR *pos = NULL;
BOOL found = FALSE; BOOL found = FALSE;