gwin32registrykey: Fix returning subkey_name in subkey_iter_get_name()

This commit is contained in:
Руслан Ижбулатов 2020-10-01 17:16:34 +01:00 committed by Philip Withnall
parent 42961e819d
commit b01521b4cd

View File

@ -1013,13 +1013,15 @@ g_win32_registry_subkey_iter_get_name (GWin32RegistrySubkeyIter *iter,
&subkey_name_len_glong,
error);
if (iter->subkey_name_u8 != NULL)
{
*subkey_name_len = subkey_name_len_glong;
return TRUE;
}
if (iter->subkey_name_u8 == NULL)
return FALSE;
return FALSE;
*subkey_name = iter->subkey_name_u8;
if (subkey_name_len)
*subkey_name_len = subkey_name_len_glong;
return TRUE;
}
/**