summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--qga/commands-win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qga/commands-win32.c b/qga/commands-win32.c
index 4e3e14741b..1086ac92a8 100644
--- a/qga/commands-win32.c
+++ b/qga/commands-win32.c
@@ -1303,7 +1303,8 @@ get_net_error_message(gint error)
     HMODULE module = NULL;
     gchar *retval = NULL;
     wchar_t *msg = NULL;
-    int flags, nchars;
+    int flags;
+    size_t nchars;
 
     flags = FORMAT_MESSAGE_ALLOCATE_BUFFER |
         FORMAT_MESSAGE_IGNORE_INSERTS |