Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
21f95c9d
Commit
21f95c9d
authored
Dec 09, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmvcore/tests: Use wide-char string literals in locale.c.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8eff23cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+6
-11
No files found.
dlls/wmvcore/tests/wmvcore.c
View file @
21f95c9d
...
...
@@ -321,36 +321,31 @@ static void test_WMCreateWriterPriv(void)
static
void
test_urlextension
(
void
)
{
HRESULT
hr
;
const
WCHAR
mp3file
[]
=
{
't'
,
'e'
,
's'
,
't'
,
'.'
,
'm'
,
'p'
,
'3'
,
0
};
const
WCHAR
mkvfile
[]
=
{
't'
,
'e'
,
's'
,
't'
,
'.'
,
'm'
,
'k'
,
'v'
,
0
};
const
WCHAR
urlfile
[]
=
{
'a'
,
'b'
,
'c'
,
'd'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
'm'
,
'v'
,
0
};
const
WCHAR
testurl
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'/'
,
't'
,
'.'
,
'a'
,
's'
,
'f'
,
'?'
,
'a'
,
'l'
,
't'
,
'='
,
't'
,
'.'
,
'm'
,
'k'
,
'v'
,
0
};
hr
=
WMCheckURLExtension
(
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"WMCheckURLExtension failed 0x%08x
\n
"
,
hr
);
hr
=
WMCheckURLExtension
(
mkvfile
);
hr
=
WMCheckURLExtension
(
L"test.mkv"
);
ok
(
hr
==
NS_E_INVALID_NAME
,
"WMCheckURLExtension failed 0x%08x
\n
"
,
hr
);
hr
=
WMCheckURLExtension
(
mp3file
);
hr
=
WMCheckURLExtension
(
L"test.mp3"
);
todo_wine
ok
(
hr
==
S_OK
,
"WMCheckURLExtension failed 0x%08x
\n
"
,
hr
);
hr
=
WMCheckURLExtension
(
urlfile
);
hr
=
WMCheckURLExtension
(
L"abcd://test/test.wmv"
);
todo_wine
ok
(
hr
==
S_OK
,
"WMCheckURLExtension failed 0x%08x
\n
"
,
hr
);
hr
=
WMCheckURLExtension
(
testurl
);
hr
=
WMCheckURLExtension
(
L"http://test/t.asf?alt=t.mkv"
);
todo_wine
ok
(
hr
==
S_OK
,
"WMCheckURLExtension failed 0x%08x
\n
"
,
hr
);
}
static
void
test_iscontentprotected
(
void
)
{
HRESULT
hr
;
const
WCHAR
mp3file
[]
=
{
't'
,
'e'
,
's'
,
't'
,
'.'
,
'm'
,
'p'
,
'3'
,
0
};
BOOL
drm
;
hr
=
WMIsContentProtected
(
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"WMIsContentProtected failed 0x%08x
\n
"
,
hr
);
hr
=
WMIsContentProtected
(
NULL
,
&
drm
);
ok
(
hr
==
E_INVALIDARG
,
"WMIsContentProtected failed 0x%08x
\n
"
,
hr
);
hr
=
WMIsContentProtected
(
mp3file
,
NULL
);
hr
=
WMIsContentProtected
(
L"test.mp3"
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"WMIsContentProtected failed 0x%08x
\n
"
,
hr
);
hr
=
WMIsContentProtected
(
mp3file
,
&
drm
);
hr
=
WMIsContentProtected
(
L"test.mp3"
,
&
drm
);
ok
(
hr
==
S_FALSE
,
"WMIsContentProtected failed 0x%08x
\n
"
,
hr
);
ok
(
drm
==
FALSE
,
"got %0dx
\n
"
,
drm
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment