Skip to content

Commit 2a50606

Browse files
committed
chore: add cast for GetProcAddress
1 parent 4628c75 commit 2a50606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/openjdkvm/openjdkvm_hook_impl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static bool InitOpenJdkVmHookInfoLocked(JNIEnv* env, std::string& errorMsg) {
192192
fnGetSymbolAddress = [libjvmHandle](std::string_view name) -> void* {
193193
void* addr;
194194
#ifdef _WIN32
195-
addr = GetProcAddress(static_cast<HMODULE>(libjvmHandle), std::string(name).c_str());
195+
addr = reinterpret_cast<void*>(GetProcAddress(static_cast<HMODULE>(libjvmHandle), std::string(name).c_str()));
196196
#else
197197
addr = dlsym(libjvmHandle, std::string(name).c_str());
198198
#endif

0 commit comments

Comments
 (0)