https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ae5d2dbb9e7f63420d334…
commit ae5d2dbb9e7f63420d33497ace71119a4ba50e7f
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Thu Mar 26 14:48:35 2020 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Thu Mar 26 16:39:16 2020 +0100
[WIN32K] Add some static specifiers, to prevent exporting FORCEINLINE function outside
compilation unit
---
win32ss/gdi/ntgdi/freetype.c | 2 +-
win32ss/gdi/ntgdi/gdiobj.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index 65bda368626..7d646807e7b 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -5830,7 +5830,7 @@ NtGdiGetFontFamilyInfo(HDC Dc,
return GotCount;
}
-FORCEINLINE
+static inline
LONG
ScaleLong(LONG lValue, PFLOATOBJ pef)
{
diff --git a/win32ss/gdi/ntgdi/gdiobj.c b/win32ss/gdi/ntgdi/gdiobj.c
index 3a323dc2fb4..95633e980da 100644
--- a/win32ss/gdi/ntgdi/gdiobj.c
+++ b/win32ss/gdi/ntgdi/gdiobj.c
@@ -343,7 +343,7 @@ DecrementCurrentProcessGdiHandleCount(void)
if (ppi) InterlockedDecrement((LONG*)&ppi->GDIHandleCount);
}
-FORCEINLINE
+static inline
VOID
IncrementGdiHandleCount(ULONG ulProcessId)
{
@@ -360,7 +360,7 @@ IncrementGdiHandleCount(ULONG ulProcessId)
if (NT_SUCCESS(Status)) ObDereferenceObject(pep);
}
-FORCEINLINE
+static inline
VOID
DecrementGdiHandleCount(ULONG ulProcessId)
{