Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
/ jdk13u-dev Public archive

Commit d7a63fc

Browse files
author
Ekaterina Vergizova
committed
8250911: [windows] os::pd_map_memory error detection broken
Backport-of: aab365f
1 parent 325657a commit d7a63fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/os/windows/os_windows.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4921,7 +4921,7 @@ char* os::pd_map_memory(int fd, const char* file_name, size_t file_offset,
49214921

49224922
hFile = CreateFile(file_name, GENERIC_READ, FILE_SHARE_READ, NULL,
49234923
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
4924-
if (hFile == NULL) {
4924+
if (hFile == INVALID_HANDLE_VALUE) {
49254925
log_info(os)("CreateFile() failed: GetLastError->%ld.", GetLastError());
49264926
return NULL;
49274927
}

0 commit comments

Comments
 (0)