Skip to content

Commit

Permalink
8349417: Fix NULL usage from JDK-8346433
Browse files Browse the repository at this point in the history
Reviewed-by: chagedorn
  • Loading branch information
David Holmes committed Feb 6, 2025
1 parent 64bd8d2 commit 30f7162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/os/windows/os_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4433,8 +4433,8 @@ bool os::message_box(const char* title, const char* message) {
void os::init(void) {
if (is_vm_statically_linked()) {
// Mimick what is done in DllMain for non-static builds
HMODULE hModule = NULL;
GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, NULL, &hModule);
HMODULE hModule = nullptr;
GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, nullptr, &hModule);
windows_preinit(hModule);
atexit(windows_atexit);
}
Expand Down

0 comments on commit 30f7162

Please sign in to comment.