[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master b6c6629 5/5: addpm.c: Silence some warnings.
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] master b6c6629 5/5: addpm.c: Silence some warnings. |
Date: |
Sat, 24 Oct 2015 23:16:26 +0000 |
branch: master
commit b6c6629ebe570baac53ed2a737f54711f29f79ca
Author: Juanma Barranquero <address@hidden>
Commit: Juanma Barranquero <address@hidden>
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 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/nt/addpm.c b/nt/addpm.c
index ee90cf8..8dfb4bd 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)
{
- [Emacs-diffs] master updated (478d9d9 -> b6c6629), Juanma Barranquero, 2015/10/24
- [Emacs-diffs] master 8a48f16 1/5: addpm.c: Don't pass REG_OPTION_NON_VOLATILE to RegOpenKeyEx, Juanma Barranquero, 2015/10/24
- [Emacs-diffs] master 8c5747e 2/5: * nt/addpm.c (add_registry): Do not compute unused return value., Juanma Barranquero, 2015/10/24
- [Emacs-diffs] master b6c6629 5/5: addpm.c: Silence some warnings.,
Juanma Barranquero <=
- [Emacs-diffs] master cbbea70 3/5: addpm.c: Replace existing entries, but do not create new ones, Juanma Barranquero, 2015/10/24
- [Emacs-diffs] master 87a3064 4/5: addpm.c: Do not add obsolete GTK libraries to the path., Juanma Barranquero, 2015/10/24