Commit aff982b1 by Aaron W. LaFramboise Committed by Per Bothner

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
parent f58f7def
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.
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment