mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Fix signedness warning in gio/gcontenttype-win32.c
gio/gcontenttype-win32.c: In function 'get_registry_classes_key': gio/gcontenttype-win32.c:66:78: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'int' if (ExpandEnvironmentStringsW (wc_temp, wc_temp_expanded, len) == len) ^~
This commit is contained in:
parent
c57d31288b
commit
9e3a08b222
@ -59,7 +59,7 @@ get_registry_classes_key (const char *subdir,
|
||||
if (key_type == REG_EXPAND_SZ)
|
||||
{
|
||||
wchar_t dummy[1];
|
||||
int len = ExpandEnvironmentStringsW (wc_temp, dummy, 1);
|
||||
DWORD len = ExpandEnvironmentStringsW (wc_temp, dummy, 1);
|
||||
if (len > 0)
|
||||
{
|
||||
wchar_t *wc_temp_expanded = g_new (wchar_t, len);
|
||||
|
Loading…
Reference in New Issue
Block a user