8256486: Linux/Windows-x86 builds broken after JDK-8254231

Reviewed-by: shade
This commit is contained in:
Jorn Vernee 2020-11-25 18:09:22 +00:00
parent 461c5fc637
commit 7c73fff34d
12 changed files with 120 additions and 40 deletions

View file

@ -49,7 +49,7 @@ void* findEntryInProcess(const char* name) {
// first come, first served
if (EnumProcessModules(hProcess, hMods, sizeof(hMods), &cbNeeded)) {
for (int i = 0; i < (cbNeeded / sizeof(HMODULE)); i++) {
for (size_t i = 0; i < (cbNeeded / sizeof(HMODULE)); i++) {
HMODULE mod = hMods[i];
FARPROC proc = GetProcAddress(mod, name);
if(proc != NULL) {