Michael Stefaniuc : dmime/tests: Use wide-char string literals.
Alexandre Julliard
julliard at winehq.org
Mon Dec 16 16:47:55 CST 2019
Module: wine
Branch: master
Commit: 604b874b20b625a9ee127d86e4a69b5725ed50e1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=604b874b20b625a9ee127d86e4a69b5725ed50e1
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Mon Dec 16 20:49:39 2019 +0100
dmime/tests: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dmime/tests/dmime.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/dmime/tests/dmime.c b/dlls/dmime/tests/dmime.c
index 5bb3a8b5b3..99295f391b 100644
--- a/dlls/dmime/tests/dmime.c
+++ b/dlls/dmime/tests/dmime.c
@@ -956,8 +956,6 @@ static void test_parsedescriptor(void)
HRESULT hr;
DWORD valid;
unsigned int i;
- const WCHAR s_unam[] = {'U','N','A','M','\0'};
- const WCHAR s_inam[] = {'I','\0'};
/* fourcc ~0 will be replaced later on */
FOURCC alldesc[] =
{
@@ -1092,7 +1090,7 @@ static void test_parsedescriptor(void)
"Got version %u.%u, expected 5.8\n", desc.vVersion.dwVersionMS,
desc.vVersion.dwVersionLS);
if (forms[i].form != mmioFOURCC('W','A','V','E'))
- ok(!memcmp(desc.wszName, s_unam, sizeof(s_unam)), "Got name '%s', expected 'UNAM'\n",
+ ok(!lstrcmpW(desc.wszName, L"UNAM"), "Got name '%s', expected 'UNAM'\n",
wine_dbgstr_w(desc.wszName));
IStream_Release(stream);
@@ -1130,7 +1128,7 @@ static void test_parsedescriptor(void)
valid |= DMUS_OBJ_NAME;
ok(desc.dwValidData == valid, "Got valid data %#x, expected %#x\n", desc.dwValidData, valid);
if (forms[i].form == mmioFOURCC('W','A','V','E'))
- ok(!memcmp(desc.wszName, s_inam, sizeof(s_inam)), "Got name '%s', expected 'I'\n",
+ ok(!lstrcmpW(desc.wszName, L"I"), "Got name '%s', expected 'I'\n",
wine_dbgstr_w(desc.wszName));
IStream_Release(stream);
More information about the wine-cvs
mailing list