mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 22:59:16 +02:00
registrybackend: use the glib format string macro
This commit is contained in:
parent
a159bc939d
commit
a89629db1d
@ -336,9 +336,9 @@ static char *
|
|||||||
registry_value_dump (RegistryValue value)
|
registry_value_dump (RegistryValue value)
|
||||||
{
|
{
|
||||||
if (value.type == REG_DWORD)
|
if (value.type == REG_DWORD)
|
||||||
return g_strdup_printf ("%i", value.dword);
|
return g_strdup_printf ("%d", value.dword);
|
||||||
else if (value.type == REG_QWORD)
|
else if (value.type == REG_QWORD)
|
||||||
return g_strdup_printf ("%I64i", value.ptr == NULL ? 0: *(DWORDLONG *)value.ptr);
|
return g_strdup_printf ("%"G_GINT64_FORMAT, value.ptr == NULL ? 0: *(DWORDLONG *)value.ptr);
|
||||||
else if (value.type == REG_SZ)
|
else if (value.type == REG_SZ)
|
||||||
return g_strdup_printf ("%s", (char *)value.ptr);
|
return g_strdup_printf ("%s", (char *)value.ptr);
|
||||||
else if (value.type == REG_NONE)
|
else if (value.type == REG_NONE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user