From 9098a7f9271492d1e1c359fdfec25da804f5bda2 Mon Sep 17 00:00:00 2001 From: Ignacio Casal Quinteiro Date: Mon, 1 Feb 2016 17:17:35 +0100 Subject: [PATCH] registrybackend: minor style cleanup --- gio/gregistrysettingsbackend.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/gio/gregistrysettingsbackend.c b/gio/gregistrysettingsbackend.c index abe7ed097..13a61e995 100644 --- a/gio/gregistrysettingsbackend.c +++ b/gio/gregistrysettingsbackend.c @@ -1037,10 +1037,11 @@ g_registry_backend_write (GSettingsBackend *backend, result = RegCreateKeyExA (HKEY_CURRENT_USER, self->base_path, 0, NULL, 0, KEY_WRITE, NULL, &hroot, NULL); - if (result != ERROR_SUCCESS) { - trace ("Error opening/creating key %s.\n", self->base_path); - return FALSE; - } + if (result != ERROR_SUCCESS) + { + trace ("Error opening/creating key %s.\n", self->base_path); + return FALSE; + } action.self = self; action.hroot = hroot; @@ -1064,10 +1065,11 @@ g_registry_backend_write_tree (GSettingsBackend *backend, result = RegCreateKeyExA (HKEY_CURRENT_USER, self->base_path, 0, NULL, 0, KEY_WRITE, NULL, &hroot, NULL); - if (result != ERROR_SUCCESS) { - trace ("Error opening/creating key %s.\n", self->base_path); - return FALSE; - } + if (result != ERROR_SUCCESS) + { + trace ("Error opening/creating key %s.\n", self->base_path); + return FALSE; + } action.self = self; action.hroot = hroot;