From bebda79491b11a74195f79a80e0b929ef6edf2b1 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Mon, 19 Aug 2024 00:06:48 +0100 Subject: Fix casing of `KERNEL32.DLL` (#768) This is a certified windows moment. Case insensitive but also not sometimes I guess --- primedev/windows/libsys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'primedev/windows/libsys.cpp') diff --git a/primedev/windows/libsys.cpp b/primedev/windows/libsys.cpp index cda10435..dc699b84 100644 --- a/primedev/windows/libsys.cpp +++ b/primedev/windows/libsys.cpp @@ -109,7 +109,7 @@ HMODULE WINAPI WLoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlag //----------------------------------------------------------------------------- void LibSys_Init() { - HMODULE hKernel = GetModuleHandleA("Kernel32.dll"); + HMODULE hKernel = GetModuleHandleA("KERNEL32.DLL"); o_LoadLibraryA = reinterpret_cast(GetProcAddress(hKernel, "LoadLibraryA")); o_LoadLibraryExA = reinterpret_cast(GetProcAddress(hKernel, "LoadLibraryExA")); -- cgit v1.2.3