Skip to content

Commit

Permalink
Fix issues running on legacy versions of Windows 7
Browse files Browse the repository at this point in the history
  • Loading branch information
dmex committed Jun 6, 2022
1 parent 38cf83f commit d71aaa3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions phlib/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -8066,6 +8066,16 @@ PVOID PhLoadLibrary(
return baseAddress;
}

if (WindowsVersion < WINDOWS_8)
{
// Note: This case is required for Windows 7 without KB2533623 (dmex)

if (baseAddress = LoadLibraryEx(LibFileName, NULL, 0))
{
return baseAddress;
}
}

return NULL;
}

Expand Down

0 comments on commit d71aaa3

Please sign in to comment.