Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8250911: [windows] os::pd_map_memory() error detection broken
Reviewed-by: iklam, kbarrett
  • Loading branch information
tstuefe committed Aug 2, 2020
1 parent 6943879 commit f951fa8b3aceaedad24a0f656f98d7265fd1979e
Showing 1 changed file with 1 addition and 1 deletion.
@@ -4987,7 +4987,7 @@ char* os::pd_map_memory(int fd, const char* file_name, size_t file_offset,

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

0 comments on commit f951fa8

Please sign in to comment.