|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-02-13 04:06:58
PAL wrote:
> > OK, now rewritten and fixed. It had quite a few bugs.
> > It still isn't complete; it doesn't handle a few of the registry
> > value types mentioned here: http://tinyurl.com/2a5s3, but at least it
> > doesn't crash.
>
> Hmm... I have compared the original code with yours.
> I found that
> ---------------------------------------------------------------------------
>- ---
> LPSTR szRootKey = newstr( lol_get(frame->args, 0)->string );
>
> szKey = strchr(szRootKey , '\\');
> *szKey = '\0'; ++szKey;
> ---------------------------------------------------------------------------
>- ---
> when " *szKey = '\0' " would raise an access violation.
> I don't know why... I remember I have already test it and been sure that it
> works.
Do you mean that the current code crashes? When precisely does it happen? Is
it when szRootKey does not contain '\\' or there's something else?
- Volodya
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