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
eadbba41
Commit
eadbba41
authored
Sep 30, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comsvcs/tests: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9ec0c082
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
comsvcs.c
dlls/comsvcs/tests/comsvcs.c
+5
-8
No files found.
dlls/comsvcs/tests/comsvcs.c
View file @
eadbba41
...
...
@@ -176,9 +176,6 @@ static DWORD WINAPI com_thread(void *arg)
static
void
create_dispenser
(
void
)
{
static
const
WCHAR
pool0
[]
=
{
'S'
,
'C'
,
'.'
,
'P'
,
'o'
,
'o'
,
'l'
,
' '
,
'0'
,
' '
,
'0'
,
0
};
static
const
WCHAR
pool1
[]
=
{
'S'
,
'C'
,
'.'
,
'P'
,
'o'
,
'o'
,
'l'
,
' '
,
'1'
,
' '
,
'1'
,
0
};
static
const
WCHAR
data
[]
=
{
'd'
,
'a'
,
't'
,
'a'
,
'1'
,
0
};
HRESULT
hr
;
IDispenserManager
*
dispenser
=
NULL
;
IHolder
*
holder1
=
NULL
,
*
holder2
=
NULL
,
*
holder3
=
NULL
;
...
...
@@ -203,7 +200,7 @@ static void create_dispenser(void)
init_test_driver
(
&
driver
);
hr
=
IDispenserManager_RegisterDispenser
(
dispenser
,
&
driver
.
IDispenserDriver_iface
,
pool0
,
&
holder1
);
hr
=
IDispenserManager_RegisterDispenser
(
dispenser
,
&
driver
.
IDispenserDriver_iface
,
L"SC.Pool 0 0"
,
&
holder1
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
/* The above call creates an MTA thread, but we need to wait for it to
...
...
@@ -214,11 +211,11 @@ static void create_dispenser(void)
GetExitCodeThread
(
thread
,
&
ret
);
ok
(
ret
==
S_OK
,
"got unexpected hr %#x
\n
"
,
ret
);
hr
=
IDispenserManager_RegisterDispenser
(
dispenser
,
&
driver
.
IDispenserDriver_iface
,
pool0
,
&
holder2
);
hr
=
IDispenserManager_RegisterDispenser
(
dispenser
,
&
driver
.
IDispenserDriver_iface
,
L"SC.Pool 0 0"
,
&
holder2
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
holder1
!=
holder2
,
"same holder object returned
\n
"
);
hr
=
IDispenserManager_RegisterDispenser
(
dispenser
,
&
driver
.
IDispenserDriver_iface
,
pool1
,
&
holder3
);
hr
=
IDispenserManager_RegisterDispenser
(
dispenser
,
&
driver
.
IDispenserDriver_iface
,
L"SC.Pool 1 1"
,
&
holder3
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
holder1
)
...
...
@@ -226,7 +223,7 @@ static void create_dispenser(void)
SET_EXPECT
(
driver_CreateResource
);
SET_EXPECT
(
driver_Release
);
str
=
SysAllocString
(
data
);
str
=
SysAllocString
(
L"data1"
);
hr
=
IHolder_AllocResource
(
holder1
,
(
RESTYPID
)
str
,
&
resid
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
resid
==
10
,
"got %d
\n
"
,
(
int
)
resid
);
...
...
@@ -254,7 +251,7 @@ static void create_dispenser(void)
SET_EXPECT
(
driver_CreateResource
);
SET_EXPECT
(
driver_Release
);
str
=
SysAllocString
(
data
);
str
=
SysAllocString
(
L"data1"
);
hr
=
IHolder_AllocResource
(
holder2
,
(
RESTYPID
)
str
,
&
resid
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
resid
==
10
,
"got %d
\n
"
,
(
int
)
resid
);
...
...
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