summaryrefslogtreecommitdiff
path: root/gcc/prefix.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-30 18:45:58 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-30 18:45:58 +0000
commitdfab2869ce4ded36ce34036dae725528da49f7c7 (patch)
treefa88e1197154be9503f6c4100f6dec18dad01245 /gcc/prefix.c
parented00008605ef3d1404afde3f15c51c96999d40fc (diff)
downloadgcc-dfab2869ce4ded36ce34036dae725528da49f7c7.tar.gz
2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
* prefix.c (lookup_key): Cast buffer to LPBYTE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83925 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/prefix.c')
-rw-r--r--gcc/prefix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/prefix.c b/gcc/prefix.c
index 1d2eded8ca0..ab199b5cf51 100644
--- a/gcc/prefix.c
+++ b/gcc/prefix.c
@@ -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)