mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[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:
parent
53b12aaae9
commit
e85c54a5c7
1 changed files with 1 additions and 1 deletions
|
@ -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++);
|
||||
|
|
Loading…
Reference in a new issue