aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/winregistry.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-03-23 10:05:55 +0100
committermarha <marha@users.sourceforge.net>2012-03-23 10:05:55 +0100
commit0f834b91a4768673833ab4917e87d86c237bb1a6 (patch)
tree363489504ed4b2d360259b8de4c9e392918e5d02 /xorg-server/hw/xwin/winregistry.c
parentfc72edebf875378459368c5383d9023730cbca54 (diff)
downloadvcxsrv-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.c44
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;
}