Re: RegOpenKeyExW() Question

2007-06-23 Thread Andrew Talbot
Tom Spear wrote: At the risk of looking like an idiot, I'll take a stab at this.. If you RegCloseKey on env, and it is not initialized, then RegCloseKey will generate ERROR_INVALID_HANDLE, so I personally think that something like the first approach would be the better one to go with. env

Re: RegOpenKeyExW() Question

2007-06-22 Thread Tom Spear
On 6/22/07, Andrew Talbot [EMAIL PROTECTED] wrote: Hi, I want to patch msi:action.c:ITERATE_WriteEnvironmentString() so that it only calls RegCloseKey(env), in the cleanup, if env has been initialized (to fix Coverity report CID-562). I can bypass the call to RegCloseKey() for any early exit