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
2dd647a5
Commit
2dd647a5
authored
Mar 01, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netcfgx/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
017115a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
Makefile.in
dlls/netcfgx/tests/Makefile.in
+0
-1
netcfgx.c
dlls/netcfgx/tests/netcfgx.c
+8
-8
No files found.
dlls/netcfgx/tests/Makefile.in
View file @
2dd647a5
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
netcfgx.dll
TESTDLL
=
netcfgx.dll
IMPORTS
=
uuid ole32
IMPORTS
=
uuid ole32
...
...
dlls/netcfgx/tests/netcfgx.c
View file @
2dd647a5
...
@@ -36,11 +36,11 @@ static void create_configuration(void)
...
@@ -36,11 +36,11 @@ static void create_configuration(void)
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
hr
=
INetCfg_QueryInterface
(
config
,
&
IID_INetCfgLock
,
(
LPVOID
*
)
&
netlock
);
hr
=
INetCfg_QueryInterface
(
config
,
&
IID_INetCfgLock
,
(
LPVOID
*
)
&
netlock
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08
l
x
\n
"
,
hr
);
hr
=
INetCfgLock_AcquireWriteLock
(
netlock
,
5000
,
L"MY CLIENT"
,
&
client
);
hr
=
INetCfgLock_AcquireWriteLock
(
netlock
,
5000
,
L"MY CLIENT"
,
&
client
);
ok
(
hr
==
S_OK
||
ok
(
hr
==
S_OK
||
hr
==
E_ACCESSDENIED
/* Not run as admin */
,
"got 0x%08x
\n
"
,
hr
);
hr
==
E_ACCESSDENIED
/* Not run as admin */
,
"got 0x%08
l
x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
trace
(
"Lock value: %s
\n
"
,
wine_dbgstr_w
(
client
));
trace
(
"Lock value: %s
\n
"
,
wine_dbgstr_w
(
client
));
...
@@ -50,27 +50,27 @@ static void create_configuration(void)
...
@@ -50,27 +50,27 @@ static void create_configuration(void)
trace
(
"Not run with Admin permissions
\n
"
);
trace
(
"Not run with Admin permissions
\n
"
);
hr
=
INetCfg_Initialize
(
config
,
NULL
);
hr
=
INetCfg_Initialize
(
config
,
NULL
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08
l
x
\n
"
,
hr
);
/* AcquireWriteLock needs to be run before Initialize */
/* AcquireWriteLock needs to be run before Initialize */
hr
=
INetCfgLock_AcquireWriteLock
(
netlock
,
5000
,
L"MY CLIENT"
,
&
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
);
todo_wine
ok
(
hr
==
NETCFG_E_ALREADY_INITIALIZED
||
hr
==
E_ACCESSDENIED
,
"got 0x%08
l
x
\n
"
,
hr
);
hr
=
INetCfg_FindComponent
(
config
,
L"MS_TCPIP"
,
&
component
);
hr
=
INetCfg_FindComponent
(
config
,
L"MS_TCPIP"
,
&
component
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08
l
x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
INetCfgComponent_Release
(
component
);
INetCfgComponent_Release
(
component
);
}
}
hr
=
INetCfg_Apply
(
config
);
hr
=
INetCfg_Apply
(
config
);
todo_wine
ok
(
hr
==
S_OK
||
hr
==
NETCFG_E_NO_WRITE_LOCK
,
"got 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
hr
==
S_OK
||
hr
==
NETCFG_E_NO_WRITE_LOCK
,
"got 0x%08
l
x
\n
"
,
hr
);
hr
=
INetCfg_Uninitialize
(
config
);
hr
=
INetCfg_Uninitialize
(
config
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08
l
x
\n
"
,
hr
);
hr
=
INetCfgLock_ReleaseWriteLock
(
netlock
);
hr
=
INetCfgLock_ReleaseWriteLock
(
netlock
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08
l
x
\n
"
,
hr
);
INetCfgLock_Release
(
netlock
);
INetCfgLock_Release
(
netlock
);
INetCfg_Release
(
config
);
INetCfg_Release
(
config
);
...
...
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