Boost logo

Boost-Build :

From: Alexey Pakhunov (alexeypa_at_[hidden])
Date: 2005-07-17 05:46:12


Hi,

I've just encountered a problem when W32_GETREG rule didn't work in
release build of bjam.exe. The last parameter of RegQueryValueEx call is
in/out parameter and it wasn't initialized properly. The attached patch
fixes this.

Best regards,
Alexey Pakhunov.
 --------------090709050906020509030506 Content-Type: text/plain;
name="w32_getreg.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="w32_getreg.c.diff"

Index: w32_getreg.c
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/jam_src/w32_getreg.c,v
retrieving revision 1.4
diff -c -3 -r1.4 w32_getreg.c
*** w32_getreg.c 15 Sep 2004 11:06:07 -0000 1.4
--- w32_getreg.c 17 Jul 2005 10:37:43 -0000
***************
*** 63,70 ****
&& ERROR_SUCCESS == RegOpenKeyEx(key, path, 0, KEY_QUERY_VALUE, &key)
)
{
! DWORD type, len;
BYTE data[MAX_REGISTRY_DATA_LENGTH];
LIST const* const field = lol_get(frame->args, 1);

if ( ERROR_SUCCESS ==
--- 63,71 ----
&& ERROR_SUCCESS == RegOpenKeyEx(key, path, 0, KEY_QUERY_VALUE, &key)
)
{
! DWORD type;
BYTE data[MAX_REGISTRY_DATA_LENGTH];
+ DWORD len = sizeof(data);
LIST const* const field = lol_get(frame->args, 1);

if ( ERROR_SUCCESS ==
 --------------090709050906020509030506--


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk