Skip to content

Commit 30f7162

Browse files
author
David Holmes
committed
8349417: Fix NULL usage from JDK-8346433
Reviewed-by: chagedorn
1 parent 64bd8d2 commit 30f7162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/os/windows/os_windows.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4433,8 +4433,8 @@ bool os::message_box(const char* title, const char* message) {
44334433
void os::init(void) {
44344434
if (is_vm_statically_linked()) {
44354435
// Mimick what is done in DllMain for non-static builds
4436-
HMODULE hModule = NULL;
4437-
GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, NULL, &hModule);
4436+
HMODULE hModule = nullptr;
4437+
GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, nullptr, &hModule);
44384438
windows_preinit(hModule);
44394439
atexit(windows_atexit);
44404440
}

0 commit comments

Comments
 (0)