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
bbb00dce
Commit
bbb00dce
authored
Oct 03, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netcfgx/tests: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2c209ccb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
netcfgx.c
dlls/netcfgx/tests/netcfgx.c
+3
-5
No files found.
dlls/netcfgx/tests/netcfgx.c
View file @
bbb00dce
...
...
@@ -25,8 +25,6 @@
static
void
create_configuration
(
void
)
{
static
const
WCHAR
tcpipW
[]
=
{
'M'
,
'S'
,
'_'
,
'T'
,
'C'
,
'P'
,
'I'
,
'P'
,
0
};
static
const
WCHAR
myclient
[]
=
{
'M'
,
'Y'
,
' '
,
'C'
,
'L'
,
'I'
,
'E'
,
'N'
,
'T'
,
0
};
HRESULT
hr
;
INetCfg
*
config
=
NULL
;
INetCfgLock
*
netlock
=
NULL
;
...
...
@@ -40,7 +38,7 @@ static void create_configuration(void)
hr
=
INetCfg_QueryInterface
(
config
,
&
IID_INetCfgLock
,
(
LPVOID
*
)
&
netlock
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
INetCfgLock_AcquireWriteLock
(
netlock
,
5000
,
myclient
,
&
client
);
hr
=
INetCfgLock_AcquireWriteLock
(
netlock
,
5000
,
L"MY CLIENT"
,
&
client
);
ok
(
hr
==
S_OK
||
hr
==
E_ACCESSDENIED
/* Not run as admin */
,
"got 0x%08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
...
...
@@ -55,10 +53,10 @@ static void create_configuration(void)
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
/* AcquireWriteLock needs to be run before Initialize */
hr
=
INetCfgLock_AcquireWriteLock
(
netlock
,
5000
,
myclient
,
&
client
);
hr
=
INetCfgLock_AcquireWriteLock
(
netlock
,
5000
,
L"MY CLIENT"
,
&
client
);
todo_wine
ok
(
hr
==
NETCFG_E_ALREADY_INITIALIZED
||
hr
==
E_ACCESSDENIED
,
"got 0x%08x
\n
"
,
hr
);
hr
=
INetCfg_FindComponent
(
config
,
tcpipW
,
&
component
);
hr
=
INetCfg_FindComponent
(
config
,
L"MS_TCPIP"
,
&
component
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
...
...
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