forked from OSchip/llvm-project
Windows: Don't bother with pinning Kernel32.dll
We don't delay load it so it shouldn't be going anywhere. llvm-svn: 192561
This commit is contained in:
parent
d46d6dea68
commit
7af18578f8
|
@ -48,9 +48,7 @@ static bool loadSRW() {
|
|||
if (!sChecked) {
|
||||
sChecked = true;
|
||||
|
||||
HMODULE hLib;
|
||||
::GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_PIN, L"Kernel32.dll", &hLib);
|
||||
if (hLib) {
|
||||
if (HMODULE hLib = ::GetModuleHandleW(L"Kernel32.dll")) {
|
||||
fpInitializeSRWLock =
|
||||
(VOID (WINAPI *)(PSRWLOCK))::GetProcAddress(hLib,
|
||||
"InitializeSRWLock");
|
||||
|
|
Loading…
Reference in New Issue