msdmo/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:
parent
60eb0d4ba7
commit
dea1fceb71
|
@ -41,7 +41,6 @@ static const char *guid_to_string(const GUID *guid)
|
||||||
static void test_DMOUnregister(void)
|
static void test_DMOUnregister(void)
|
||||||
{
|
{
|
||||||
static char buffer[200];
|
static char buffer[200];
|
||||||
static const WCHAR testdmoW[] = {'t','e','s','t','d','m','o',0};
|
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
hr = DMOUnregister(&GUID_unknowndmo, &GUID_unknowncategory);
|
hr = DMOUnregister(&GUID_unknowndmo, &GUID_unknowncategory);
|
||||||
|
@ -51,10 +50,10 @@ static void test_DMOUnregister(void)
|
||||||
ok(hr == S_FALSE, "got 0x%08x\n", hr);
|
ok(hr == S_FALSE, "got 0x%08x\n", hr);
|
||||||
|
|
||||||
/* can't register for all categories */
|
/* can't register for all categories */
|
||||||
hr = DMORegister(testdmoW, &GUID_unknowndmo, &GUID_NULL, 0, 0, NULL, 0, NULL);
|
hr = DMORegister(L"testdmo", &GUID_unknowndmo, &GUID_NULL, 0, 0, NULL, 0, NULL);
|
||||||
ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
|
ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
|
||||||
|
|
||||||
hr = DMORegister(testdmoW, &GUID_unknowndmo, &GUID_unknowncategory, 0, 0, NULL, 0, NULL);
|
hr = DMORegister(L"testdmo", &GUID_unknowndmo, &GUID_unknowncategory, 0, 0, NULL, 0, NULL);
|
||||||
if (hr != S_OK) {
|
if (hr != S_OK) {
|
||||||
win_skip("Failed to register DMO. Probably user doesn't have persmissions to do so.\n");
|
win_skip("Failed to register DMO. Probably user doesn't have persmissions to do so.\n");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue