diff options
Diffstat (limited to 'util/osdep.c')
-rw-r--r-- | util/osdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/osdep.c b/util/osdep.c index f7d0605..4829c07 100644 --- a/util/osdep.c +++ b/util/osdep.c @@ -82,8 +82,8 @@ static int qemu_mprotect__osdep(void *addr, size_t size, int prot) DWORD old_protect; if (!VirtualProtect(addr, size, prot, &old_protect)) { - error_report("%s: VirtualProtect failed with error code %ld", - __func__, GetLastError()); + g_autofree gchar *emsg = g_win32_error_message(GetLastError()); + error_report("%s: VirtualProtect failed: %s", __func__, emsg); return -1; } return 0; |