[NDIS] Use FORCEINLINE instead of __inline

This commit is contained in:
Jérôme Gardou 2020-11-09 09:15:57 +01:00 committed by Jérôme Gardou
parent 15c9f63b65
commit 378642eb4f
2 changed files with 10 additions and 8 deletions

View file

@ -10,7 +10,9 @@
#include <ndissys.h> #include <ndissys.h>
__inline ULONG SkipToOffset( FORCEINLINE
ULONG
SkipToOffset(
IN PNDIS_BUFFER Buffer, IN PNDIS_BUFFER Buffer,
IN UINT Offset, IN UINT Offset,
IN OUT PUCHAR *Data, IN OUT PUCHAR *Data,

View file

@ -125,14 +125,14 @@ typedef struct _NDIS_HANDLE_OBJECT
PVOID MapBuffer; PVOID MapBuffer;
} NDIS_HANDLE_OBJECT, *PNDIS_HANDLE_OBJECT; } NDIS_HANDLE_OBJECT, *PNDIS_HANDLE_OBJECT;
__inline FORCEINLINE
PNDIS_HANDLE_OBJECT PNDIS_HANDLE_OBJECT
NDIS_HANDLE_TO_POBJECT ( NDIS_HANDLE handle ) NDIS_HANDLE_TO_POBJECT ( NDIS_HANDLE handle )
{ {
return (PNDIS_HANDLE_OBJECT)handle; return (PNDIS_HANDLE_OBJECT)handle;
} }
__inline FORCEINLINE
NDIS_HANDLE NDIS_HANDLE
NDIS_POBJECT_TO_HANDLE ( PNDIS_HANDLE_OBJECT obj ) NDIS_POBJECT_TO_HANDLE ( PNDIS_HANDLE_OBJECT obj )
{ {