Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4050ceb2
Commit
4050ceb2
authored
May 30, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
May 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Add GetCurrentThreadCompartmentId stub and a test.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54599
parent
900ba826
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletion
+20
-1
iphlpapi.spec
dlls/iphlpapi/iphlpapi.spec
+1
-1
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+9
-0
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+9
-0
netioapi.h
include/netioapi.h
+1
-0
No files found.
dlls/iphlpapi/iphlpapi.spec
View file @
4050ceb2
...
...
@@ -80,7 +80,7 @@
@ stdcall GetBestRoute( long long ptr )
@ stdcall GetBestRoute2( ptr long ptr ptr long ptr ptr )
@ stub GetBestRouteFromStack
#@ stub GetCurrentThreadCompartmentId
@ stdcall GetCurrentThreadCompartmentId()
@ stdcall GetExtendedTcpTable( ptr ptr long long long long )
@ stdcall GetExtendedUdpTable( ptr ptr long long long long )
@ stdcall GetFriendlyIfIndex( long )
...
...
dlls/iphlpapi/iphlpapi_main.c
View file @
4050ceb2
...
...
@@ -4750,3 +4750,12 @@ DWORD WINAPI Icmp6SendEcho2( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc_ro
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
}
/***********************************************************************
* GetCurrentThreadCompartmentId (IPHLPAPI.@)
*/
NET_IF_COMPARTMENT_ID
WINAPI
GetCurrentThreadCompartmentId
(
void
)
{
FIXME
(
"stub
\n
"
);
return
NET_IF_COMPARTMENT_ID_PRIMARY
;
}
dlls/iphlpapi/tests/iphlpapi.c
View file @
4050ceb2
...
...
@@ -2893,6 +2893,14 @@ static void test_ConvertGuidToString( void )
ok
(
err
==
ERROR_INVALID_PARAMETER
,
"got %ld
\n
"
,
err
);
}
static
void
test_compartments
(
void
)
{
NET_IF_COMPARTMENT_ID
id
;
id
=
GetCurrentThreadCompartmentId
();
ok
(
id
==
NET_IF_COMPARTMENT_ID_PRIMARY
,
"got %u
\n
"
,
id
);
}
START_TEST
(
iphlpapi
)
{
...
...
@@ -2927,6 +2935,7 @@ START_TEST(iphlpapi)
test_ParseNetworkString
();
test_NotifyUnicastIpAddressChange
();
test_ConvertGuidToString
();
test_compartments
();
freeIPHlpApi
();
}
}
include/netioapi.h
View file @
4050ceb2
...
...
@@ -250,6 +250,7 @@ DWORD WINAPI ConvertInterfaceNameToLuidA(const char*,NET_LUID*);
DWORD
WINAPI
ConvertInterfaceNameToLuidW
(
const
WCHAR
*
,
NET_LUID
*
);
DWORD
WINAPI
ConvertLengthToIpv4Mask
(
ULONG
,
ULONG
*
);
void
WINAPI
FreeMibTable
(
void
*
);
NET_IF_COMPARTMENT_ID
WINAPI
GetCurrentThreadCompartmentId
(
void
);
DWORD
WINAPI
GetIfEntry2
(
MIB_IF_ROW2
*
);
DWORD
WINAPI
GetIfEntry2Ex
(
MIB_IF_TABLE_LEVEL
,
MIB_IF_ROW2
*
);
DWORD
WINAPI
GetIfTable2
(
MIB_IF_TABLE2
**
);
...
...
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