[WINESYNC][WINMM] PlaySound: Avoid a unneeded lstrlenW call

Note that since str is a buffer it cannot be NULL.

Based on Wine commit: 6a4347be371bea544e0d4a81f4cfacd29af18d6e

author: Francois Gouget <fgouget@free.fr>
Mon, 16 Sep 2019 14:01:04 +0000 (16:01 +0200)

committer: Alexandre Julliard <julliard@winehq.org>
Mon, 16 Sep 2019 20:58:42 +0000 (22:58 +0200)
This commit is contained in:
Thamatip Chitpong 2023-06-14 09:17:30 +07:00 committed by Stanislav Motylkov
parent 53b12aaae9
commit e85c54a5c7

View file

@ -72,7 +72,7 @@ static HMMIO get_mmioFromProfile(UINT uFlags, LPCWSTR lpszName)
L"",
str,
ARRAY_SIZE(str));
if (lstrlenW(str) == 0)
if (!*str)
goto Next;
for (ptr = str; *ptr && *ptr != L','; ptr++);