diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-09-19 11:25:43 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-09-19 11:25:43 +0300 |
commit | 13d9698ae43a2b156a9081895293ae1b17b5f89e (patch) | |
tree | f937362ca1ee38cae2a18da9e86944a140bc82dc /src/w32reg.c | |
parent | ced135ebdbfb0eea719ce165a454e7ff0b681e88 (diff) | |
download | emacs-13d9698ae43a2b156a9081895293ae1b17b5f89e.tar.gz |
Fix a compiler warning on MS-Windows due to recent changes.
src/w32reg.c (w32_get_string_resource): Make the first 2 arguments
'const char *' to avoid compiler warnings due to similar change in
the prototype of x_get_string_resource.
Diffstat (limited to 'src/w32reg.c')
-rw-r--r-- | src/w32reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32reg.c b/src/w32reg.c index 9d088538e0b..c41675019dd 100644 --- a/src/w32reg.c +++ b/src/w32reg.c @@ -74,7 +74,7 @@ w32_get_rdb_resource (char *rdb, const char *resource) } static LPBYTE -w32_get_string_resource (char *name, char *class, DWORD dwexptype) +w32_get_string_resource (const char *name, const char *class, DWORD dwexptype) { LPBYTE lpvalue = NULL; HKEY hrootkey = NULL; @@ -92,7 +92,7 @@ w32_get_string_resource (char *name, char *class, DWORD dwexptype) if (RegOpenKeyEx (hive, REG_ROOT, 0, KEY_READ, &hrootkey) == ERROR_SUCCESS) { - char *keyname; + const char *keyname; if (RegQueryValueEx (hrootkey, name, NULL, &dwType, NULL, &cbData) == ERROR_SUCCESS && dwType == dwexptype) |