From 0c911fb0a4d1ea78fe2be678698242154e3cec35 Mon Sep 17 00:00:00 2001 From: zhangyi Date: Mon, 25 Mar 2019 16:28:34 +0800 Subject: [PATCH] shm_win --- src/platform/shm_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/shm_win.cpp b/src/platform/shm_win.cpp index 0d24bf4..24945e5 100644 --- a/src/platform/shm_win.cpp +++ b/src/platform/shm_win.cpp @@ -33,7 +33,7 @@ void * to_mem(id_t id) { HANDLE h = static_cast(id); LPVOID mem = ::MapViewOfFile(h, FILE_MAP_ALL_ACCESS, 0, 0, 0); if (mem == NULL) { - ipc::error("fail MapViewOfFile[%d]: %s\n", static_cast(::GetLastError()), name); + ipc::error("fail MapViewOfFile[%d]\n", static_cast(::GetLastError())); return nullptr; } return static_cast(mem);