shell32: Remove some unneeded parameter setting.
This commit is contained in:
parent
5f8717d7f6
commit
3cbaaaa564
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue