summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSven Strickroth <email@cs-ware.de>2013-02-01 10:32:05 +0100
committerSven Strickroth <email@cs-ware.de>2013-02-01 10:32:05 +0100
commit45792c923ba85d42618b4b246c0a8eec8b16128e (patch)
tree8c345a8ea6716b413babbc8adae0f16e0de2c14e /src
parent01e7128f392157f3580d9bbca5c2b80fb56001ee (diff)
downloadlibgit2-45792c923ba85d42618b4b246c0a8eec8b16128e.tar.gz
Stick to coding style: Move up braces
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'src')
-rw-r--r--src/win32/findfile.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/win32/findfile.c b/src/win32/findfile.c
index 10a1c4d40..6fc7c7513 100644
--- a/src/win32/findfile.c
+++ b/src/win32/findfile.c
@@ -139,13 +139,10 @@ int win32_find_msysgit_in_registry(struct win32_path *root, const HKEY hieve, co
assert(root);
root->len = 0;
- if (RegOpenKeyExW(hieve, key, 0, KEY_ALL_ACCESS, &hKey) == ERROR_SUCCESS)
- {
- if (RegQueryValueExW(hKey, L"InstallLocation", NULL, &dwType, (LPBYTE)&root->path, &dwSize) == ERROR_SUCCESS)
- {
+ if (RegOpenKeyExW(hieve, key, 0, KEY_ALL_ACCESS, &hKey) == ERROR_SUCCESS) {
+ if (RegQueryValueExW(hKey, L"InstallLocation", NULL, &dwType, (LPBYTE)&root->path, &dwSize) == ERROR_SUCCESS) {
// InstallLocation points to the root of the msysgit directory
- if (dwSize + 4 > MAX_PATH) // 4 = wcslen(L"etc\\")
- {
+ if (dwSize + 4 > MAX_PATH) {// 4 = wcslen(L"etc\\")
giterr_set(GITERR_OS, "Cannot locate the system's msysgit directory - path too long");
return -1;
}