HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cleanup xmalloc.
[bpt/emacs.git]
/
src
/
w32reg.c
diff --git
a/src/w32reg.c
b/src/w32reg.c
index
ec251cf
..
9c727ae
100644
(file)
--- a/
src/w32reg.c
+++ b/
src/w32reg.c
@@
-110,7
+110,7
@@
w32_get_string_resource (char *name, char *class, DWORD dwexptype)
}
ok = (keyname
- && (lpvalue =
(LPBYTE)
xmalloc (cbData)) != NULL
+ && (lpvalue = xmalloc (cbData)) != NULL
&& RegQueryValueEx (hrootkey, keyname, NULL, NULL, lpvalue, &cbData) == ERROR_SUCCESS);
RegCloseKey (hrootkey);