diff options
author | marha <marha@users.sourceforge.net> | 2012-03-23 10:05:55 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-03-23 10:05:55 +0100 |
commit | 0f834b91a4768673833ab4917e87d86c237bb1a6 (patch) | |
tree | 363489504ed4b2d360259b8de4c9e392918e5d02 /xorg-server/hw/xwin/winregistry.c | |
parent | fc72edebf875378459368c5383d9023730cbca54 (diff) | |
download | vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.tar.gz vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.tar.bz2 vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.zip |
libX11 xserver fontconfig mesa pixman xkbcomp xkeyboard-config git update
23 Mar 2012
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 3571b14d7..d33f8c363 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) - { - ErrorF ("winGetRegistryDWORD - Created new key: %s\n", pszRegistryKey); + if (dwDisposition == REG_CREATED_NEW_KEY) { + ErrorF("winGetRegistryDWORD - Created new key: %s\n", pszRegistryKey); } - else if (dwDisposition == REG_OPENED_EXISTING_KEY) - { - ErrorF ("winGetRegistryDWORD - Opened existing key: %s\n", - pszRegistryKey); + else if (dwDisposition == REG_OPENED_EXISTING_KEY) { + ErrorF("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; } |