dmime/tests: Use wide-char string literals.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-12-16 20:49:39 +01:00 committed by Alexandre Julliard
parent 9d03ce02b4
commit 604b874b20
1 changed files with 2 additions and 4 deletions

View File

@ -956,8 +956,6 @@ static void test_parsedescriptor(void)
HRESULT hr; HRESULT hr;
DWORD valid; DWORD valid;
unsigned int i; 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 ~0 will be replaced later on */
FOURCC alldesc[] = FOURCC alldesc[] =
{ {
@ -1092,7 +1090,7 @@ static void test_parsedescriptor(void)
"Got version %u.%u, expected 5.8\n", desc.vVersion.dwVersionMS, "Got version %u.%u, expected 5.8\n", desc.vVersion.dwVersionMS,
desc.vVersion.dwVersionLS); desc.vVersion.dwVersionLS);
if (forms[i].form != mmioFOURCC('W','A','V','E')) 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)); wine_dbgstr_w(desc.wszName));
IStream_Release(stream); IStream_Release(stream);
@ -1130,7 +1128,7 @@ static void test_parsedescriptor(void)
valid |= DMUS_OBJ_NAME; valid |= DMUS_OBJ_NAME;
ok(desc.dwValidData == valid, "Got valid data %#x, expected %#x\n", desc.dwValidData, valid); ok(desc.dwValidData == valid, "Got valid data %#x, expected %#x\n", desc.dwValidData, valid);
if (forms[i].form == mmioFOURCC('W','A','V','E')) 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)); wine_dbgstr_w(desc.wszName));
IStream_Release(stream); IStream_Release(stream);