From aff982b1118d95c976ec712fad9249511e1e8d5d Mon Sep 17 00:00:00 2001 From: "Aaron W. LaFramboise" Date: Wed, 30 Jun 2004 18:45:58 +0000 Subject: [PATCH] prefix.c (lookup_key): Cast buffer to LPBYTE. 2004-05-28 Aaron W. LaFramboise * prefix.c (lookup_key): Cast buffer to LPBYTE. From-SVN: r83925 --- gcc/ChangeLog | 4 ++++ gcc/prefix.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2e424d7c14a..039c69ad499 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-05-28 Aaron W. LaFramboise + + * prefix.c (lookup_key): Cast buffer to LPBYTE. + 2004-06-30 Per Bothner Conditionally compile support for --enable-mapped_location. 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) -- 2.30.2