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.
This commit is contained in:
Eli Zaretskii 2013-09-19 11:25:43 +03:00
parent ced135ebdb
commit 13d9698ae4
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2013-09-19 Eli Zaretskii <eliz@gnu.org>
* 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.
2013-09-19 Dmitry Antipov <dmantipov@yandex.ru>
* xterm.h (struct x_display_info): New members last_mouse_glyph_frame,

View file

@ -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)