shell32: Avoid an unneeded strlenW() call.
Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
edcff4046c
commit
76bc23d8c6
|
@ -736,7 +736,7 @@ static UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpVerb,
|
|||
extension++;
|
||||
if (GetProfileStringW(wExtensions, extension, wszEmpty, command, ARRAY_SIZE(command)) > 0)
|
||||
{
|
||||
if (strlenW(command) != 0)
|
||||
if (*command)
|
||||
{
|
||||
strcpyW(lpResult, command);
|
||||
tok = strchrW(lpResult, '^'); /* should be ^.extension? */
|
||||
|
|
Loading…
Reference in New Issue