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:
Emmanuel Fleury 2021-05-14 14:24:30 +02:00
parent c57d31288b
commit 9e3a08b222

View File

@ -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);