aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2015-10-25 00:58:08 +0200
committerJuanma Barranquero2015-10-25 00:58:08 +0200
commitb6c6629ebe570baac53ed2a737f54711f29f79ca (patch)
treebfafc4fb0960944c572fb4e36094eb2cefb1ac9f
parent87a30649e791392656606422383e1683f6b5781e (diff)
downloademacs-b6c6629ebe570baac53ed2a737f54711f29f79ca.tar.gz
emacs-b6c6629ebe570baac53ed2a737f54711f29f79ca.zip
addpm.c: Silence some warnings.
* nt/addpm.c (DdeCommand): Cast pData argument of DdeClientTransaction to LPBYTE. (add_registry): Pass NULL to optional lpClass argument of RegCreateKeyEx, not an empty string.
-rw-r--r--nt/addpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nt/addpm.c b/nt/addpm.c
index ee90cf8a074..8dfb4bd2667 100644
--- a/nt/addpm.c
+++ b/nt/addpm.c
@@ -62,7 +62,7 @@ DdeCallback (UINT uType, UINT uFmt, HCONV hconv,
62} 62}
63 63
64#define DdeCommand(str) \ 64#define DdeCommand(str) \
65 DdeClientTransaction (str, strlen (str)+1, conversation, (HSZ)NULL, \ 65 DdeClientTransaction ((LPBYTE)str, strlen (str)+1, conversation, (HSZ)NULL, \
66 CF_TEXT, XTYP_EXECUTE, 30000, NULL) 66 CF_TEXT, XTYP_EXECUTE, 30000, NULL)
67 67
68#define REG_ROOT "SOFTWARE\\GNU\\Emacs" 68#define REG_ROOT "SOFTWARE\\GNU\\Emacs"
@@ -116,7 +116,7 @@ add_registry (const char *path)
116 affect the general operation of other installations of Emacs, and we 116 affect the general operation of other installations of Emacs, and we
117 are blindly overwriting the Start Menu entries already. 117 are blindly overwriting the Start Menu entries already.
118 */ 118 */
119 if (RegCreateKeyEx (HKEY_LOCAL_MACHINE, REG_APP_PATH, 0, "", 119 if (RegCreateKeyEx (HKEY_LOCAL_MACHINE, REG_APP_PATH, 0, NULL,
120 REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, 120 REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL,
121 &hrootkey, NULL) == ERROR_SUCCESS) 121 &hrootkey, NULL) == ERROR_SUCCESS)
122 { 122 {