mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 12:23:59 +08:00
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:
parent
f58f7def26
commit
aff982b111
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user