Navigation Menu

Skip to content

Commit

Permalink
windows: show arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 17, 2015
1 parent a09bd37 commit 4aa08d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/io.c
Expand Up @@ -1308,8 +1308,10 @@ grn_mmap(grn_ctx *ctx, HANDLE *fmo, fileinfo *fi, off_t offset, size_t length)
if (!*fmo) { return NULL; }
res = MapViewOfFile(*fmo, FILE_MAP_WRITE, 0, (DWORD)offset, (SIZE_T)length);
if (!res) {
MERR("MapViewOfFile failed #%d <%" GRN_FMT_SIZE ">",
GetLastError(), mmap_size);
SERR("MapViewOfFile");
GRN_LOG(ctx, GRN_LOG_ERROR,
"MapViewOfFile(%lu,%" GRN_FMT_SIZE ") failed <%" GRN_FMT_SIZE ">",
(DWORD)offset, length, mmap_size);
return NULL;
}
/* CRITICAL_SECTION_LEAVE(fi->cs); */
Expand Down

0 comments on commit 4aa08d6

Please sign in to comment.