Skip to content

Commit

Permalink
Change LONG to FARPROC to be technically correct
Browse files Browse the repository at this point in the history
  • Loading branch information
RazielXYZ committed Dec 13, 2023
1 parent 4758bea commit 37cdf63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer_d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ namespace bgfx { namespace d3d12
bx::memSet(&osver, 0 , sizeof(RTL_OSVERSIONINFOW));
const HMODULE hMod = ::GetModuleHandleW(L"ntdll.dll");
if (hMod) {
LONG (WINAPI* rtlGetVersionPtr) (PRTL_OSVERSIONINFOW) = reinterpret_cast<LONG (WINAPI*)(PRTL_OSVERSIONINFOW)>(::GetProcAddress(hMod, "RtlGetVersion"));
FARPROC (WINAPI* rtlGetVersionPtr) (PRTL_OSVERSIONINFOW) = reinterpret_cast<FARPROC (WINAPI*)(PRTL_OSVERSIONINFOW)>(::GetProcAddress(hMod, "RtlGetVersion"));
if (rtlGetVersionPtr != nullptr) {
rtlGetVersionPtr(&osver);
if (osver.dwBuildNumber > 0) {
Expand Down

0 comments on commit 37cdf63

Please sign in to comment.