[glib] win32: use wcslen() return type



commit 5be8cab966d65e7074dd6478d02cfa46724e479e
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Wed Feb 17 17:52:31 2016 +0100

    win32: use wcslen() return type
    
    Signed-off-by: Marc-André Lureau <marcandre lureau gmail com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762202

 glib/gwin32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gwin32.c b/glib/gwin32.c
index 06c6900..6278964 100644
--- a/glib/gwin32.c
+++ b/glib/gwin32.c
@@ -192,7 +192,7 @@ g_win32_error_message (gint error)
 {
   gchar *retval;
   wchar_t *msg = NULL;
-  int nchars;
+  size_t nchars;
 
   FormatMessageW (FORMAT_MESSAGE_ALLOCATE_BUFFER
                  |FORMAT_MESSAGE_IGNORE_INSERTS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]