From b6c6629ebe570baac53ed2a737f54711f29f79ca Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Sun, 25 Oct 2015 00:58:08 +0200 Subject: [PATCH] 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. --- nt/addpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nt/addpm.c b/nt/addpm.c index ee90cf8a07..8dfb4bd266 100644 --- a/nt/addpm.c +++ b/nt/addpm.c @@ -62,7 +62,7 @@ DdeCallback (UINT uType, UINT uFmt, HCONV hconv, } #define DdeCommand(str) \ - DdeClientTransaction (str, strlen (str)+1, conversation, (HSZ)NULL, \ + DdeClientTransaction ((LPBYTE)str, strlen (str)+1, conversation, (HSZ)NULL, \ CF_TEXT, XTYP_EXECUTE, 30000, NULL) #define REG_ROOT "SOFTWARE\\GNU\\Emacs" @@ -116,7 +116,7 @@ add_registry (const char *path) affect the general operation of other installations of Emacs, and we are blindly overwriting the Start Menu entries already. */ - if (RegCreateKeyEx (HKEY_LOCAL_MACHINE, REG_APP_PATH, 0, "", + if (RegCreateKeyEx (HKEY_LOCAL_MACHINE, REG_APP_PATH, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hrootkey, NULL) == ERROR_SUCCESS) { -- 2.39.2