diff options
Diffstat (limited to 'xorg-server/hw/xwin/winregistry.c')
-rw-r--r-- | xorg-server/hw/xwin/winregistry.c | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/xorg-server/hw/xwin/winregistry.c b/xorg-server/hw/xwin/winregistry.c index 898ed978b..0535c879d 100644 --- a/xorg-server/hw/xwin/winregistry.c +++ b/xorg-server/hw/xwin/winregistry.c @@ -34,38 +34,32 @@ #include "win.h" /* Prototypes */ -DWORD -winGetRegistryDWORD (HKEY hkey, char *pszRegistryKey); +DWORD winGetRegistryDWORD(HKEY hkey, char *pszRegistryKey); DWORD -winGetRegistryDWORD (HKEY hkey, char *pszRegistryKey) +winGetRegistryDWORD(HKEY hkey, char *pszRegistryKey) { - HKEY hkResult; - DWORD dwDisposition; + HKEY hkResult; + DWORD dwDisposition; - RegCreateKeyEx (hkey, - pszRegistryKey, - 0, - '\0', - REG_OPTION_NON_VOLATILE, - KEY_READ, - NULL, - &hkResult, - &dwDisposition); + RegCreateKeyEx(hkey, + pszRegistryKey, + 0, + '\0', + REG_OPTION_NON_VOLATILE, + KEY_READ, NULL, &hkResult, &dwDisposition); - if (dwDisposition == REG_CREATED_NEW_KEY) - { - winDebug ("winGetRegistryDWORD - Created new key: %s\n", pszRegistryKey); + if (dwDisposition == REG_CREATED_NEW_KEY) { + winDebug ("winGetRegistryDWORD - Created new key: %s\n", pszRegistryKey); } - else if (dwDisposition == REG_OPENED_EXISTING_KEY) - { - winDebug ("winGetRegistryDWORD - Opened existing key: %s\n", - pszRegistryKey); + else if (dwDisposition == REG_OPENED_EXISTING_KEY) { + winDebug ("winGetRegistryDWORD - Opened existing key: %s\n", + pszRegistryKey); } - /* Free the registry key handle */ - RegCloseKey (hkResult); - hkResult = NULL; + /* Free the registry key handle */ + RegCloseKey(hkResult); + hkResult = NULL; - return 0; + return 0; } |