prefix.c (lookup_key): Cast buffer to LPBYTE.

2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
	* prefix.c (lookup_key): Cast buffer to LPBYTE.

From-SVN: r83925
This commit is contained in:
Aaron W. LaFramboise 2004-06-30 18:45:58 +00:00 committed by Per Bothner
parent f58f7def26
commit aff982b111
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
* prefix.c (lookup_key): Cast buffer to LPBYTE.
2004-06-30 Per Bothner <per@bothner.com>
Conditionally compile support for --enable-mapped_location.

View File

@ -157,11 +157,11 @@ lookup_key (char *key)
size = 32;
dst = xmalloc (size);
res = RegQueryValueExA (reg_key, key, 0, &type, dst, &size);
res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size);
if (res == ERROR_MORE_DATA && type == REG_SZ)
{
dst = xrealloc (dst, size);
res = RegQueryValueExA (reg_key, key, 0, &type, dst, &size);
res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size);
}
if (type != REG_SZ || res != ERROR_SUCCESS)