Kouhei Sutou
null+****@clear*****
Sat Jan 17 16:02:39 JST 2015
Kouhei Sutou 2015-01-17 16:02:39 +0900 (Sat, 17 Jan 2015) New Revision: a09bd373e56e806244520ef8a1162e586602ac78 https://github.com/groonga/groonga/commit/a09bd373e56e806244520ef8a1162e586602ac78 Message: windows: show error message instead of error code Modified files: lib/io.c Modified: lib/io.c (+2 -2) =================================================================== --- lib/io.c 2015-01-17 16:01:06 +0900 (e4c1c4a) +++ lib/io.c 2015-01-17 16:02:39 +0900 (2f65208) @@ -1457,8 +1457,8 @@ grn_mmap(grn_ctx *ctx, fileinfo *fi, off_t offset, size_t length) */ res = MapViewOfFile(fi->fmo, FILE_MAP_WRITE, 0, (DWORD)offset, (SIZE_T)length); if (!res) { - MERR("MapViewOfFile failed #%lu <%" GRN_FMT_SIZE ">", - GetLastError(), mmap_size); + MERR("MapViewOfFile failed: <%" GRN_FMT_SIZE ">: %s", + mmap_size, grn_current_error_message()); return NULL; } mmap_size += length; -------------- next part -------------- HTML����������������������������...Download