Commit e97cae96 by Kai Tietz Committed by Kai Tietz

re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3…

re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)

	PR target/53912
	* prefix.c (lookup_key): Replace xmalloc/xrealloc
	use by XNEWVEC/XRESIZEVEC.

From-SVN: r193946
parent 744c3195
2012-11-29 Kai Tietz <ktietz@redhat.com>
PR target/53912
* prefix.c (lookup_key): Replace xmalloc/xrealloc
use by XNEWVEC/XRESIZEVEC.
2012-11-29 Richard Earnshaw <rearnsha@arm.com>
PR target/55073
......@@ -157,12 +157,12 @@ lookup_key (char *key)
}
size = 32;
dst = xmalloc (size);
dst = XNEWVEC (char, size);
res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size);
if (res == ERROR_MORE_DATA && type == REG_SZ)
{
dst = xrealloc (dst, size);
dst = XRESIZEVEC (char, dst, size);
res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size);
}
......
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