shell32: Remove some unneeded parameter setting.

This commit is contained in:
Paul Vriens 2010-01-14 13:47:48 +01:00 committed by Alexandre Julliard
parent 5f8717d7f6
commit 3cbaaaa564
1 changed files with 0 additions and 3 deletions

View File

@ -587,7 +587,6 @@ static UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpOpera
if (attribs!=INVALID_FILE_ATTRIBUTES && (attribs&FILE_ATTRIBUTE_DIRECTORY)) if (attribs!=INVALID_FILE_ATTRIBUTES && (attribs&FILE_ATTRIBUTE_DIRECTORY))
{ {
strcpyW(filetype, wszFolder); strcpyW(filetype, wszFolder);
filetypelen = 6; /* strlen("Folder") */
} }
else else
{ {
@ -660,14 +659,12 @@ static UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpOpera
else else
{ {
*filetype = '\0'; *filetype = '\0';
filetypelen = 0;
} }
} }
if (*filetype) if (*filetype)
{ {
/* pass the operation string to SHELL_FindExecutableByOperation() */ /* pass the operation string to SHELL_FindExecutableByOperation() */
filetype[filetypelen] = '\0';
retval = SHELL_FindExecutableByOperation(lpOperation, key, filetype, command, sizeof(command)); retval = SHELL_FindExecutableByOperation(lpOperation, key, filetype, command, sizeof(command));
if (retval > 32) if (retval > 32)