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:
Francois Gouget 2018-12-09 01:48:14 +01:00 committed by Alexandre Julliard
parent edcff4046c
commit 76bc23d8c6
1 changed files with 1 additions and 1 deletions

View File

@ -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? */