diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2003-02-04 14:56:31 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2003-02-04 14:56:31 +0000 |
commit | 177c0ea74342272645959b82cf219faa0b3dba16 (patch) | |
tree | 44e22b210a9904eab25a66d12e708804b671df75 /src/w32reg.c | |
parent | db95369be096960245dd38678f68464627698678 (diff) | |
download | emacs-177c0ea74342272645959b82cf219faa0b3dba16.tar.gz |
Trailing whitespace deleted.
Diffstat (limited to 'src/w32reg.c')
-rw-r--r-- | src/w32reg.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/w32reg.c b/src/w32reg.c index 6a8413fdc08..3a2bd1b68d9 100644 --- a/src/w32reg.c +++ b/src/w32reg.c @@ -30,7 +30,7 @@ Boston, MA 02111-1307, USA. */ #define REG_ROOT "SOFTWARE\\GNU\\Emacs" -LPBYTE +LPBYTE w32_get_string_resource (name, class, dwexptype) char *name, *class; DWORD dwexptype; @@ -41,23 +41,23 @@ w32_get_string_resource (name, class, dwexptype) DWORD cbData; BOOL ok = FALSE; HKEY hive = HKEY_CURRENT_USER; - + trykey: BLOCK_INPUT; - + /* Check both the current user and the local machine to see if we have any resources */ if (RegOpenKeyEx (hive, REG_ROOT, 0, KEY_READ, &hrootkey) == ERROR_SUCCESS) { char *keyname; - + if (RegQueryValueEx (hrootkey, name, NULL, &dwType, NULL, &cbData) == ERROR_SUCCESS && dwType == dwexptype) { keyname = name; - } + } else if (RegQueryValueEx (hrootkey, class, NULL, &dwType, NULL, &cbData) == ERROR_SUCCESS && dwType == dwexptype) { @@ -67,17 +67,17 @@ w32_get_string_resource (name, class, dwexptype) { keyname = NULL; } - + ok = (keyname && (lpvalue = (LPBYTE) xmalloc (cbData)) != NULL && RegQueryValueEx (hrootkey, keyname, NULL, NULL, lpvalue, &cbData) == ERROR_SUCCESS); - + RegCloseKey (hrootkey); } - + UNBLOCK_INPUT; - - if (!ok) + + if (!ok) { if (lpvalue) { @@ -90,7 +90,7 @@ w32_get_string_resource (name, class, dwexptype) goto trykey; } return (NULL); - } + } return (lpvalue); } |