On Tue, Sep 9, 2008 at 3:54 PM, Andrew Talbot andrew.talbot@talbotville.com wrote:
Please don't add another NULL-before-free check.
James Hawkins wrote:
Hi James,
Sorry, I don't understand what I have done wrong. RegCloseKey() will return ERROR_INVALID_HANDLE if called with hkey==NULL.
On Tue, Sep 9, 2008 at 4:24 PM, Andrew Talbot Andrew.Talbot@talbotville.com wrote:
...and we don't care what value it returns.
Hi Andy,
Sorry, I don't understand what I have done wrong. RegCloseKey() will return ERROR_INVALID_HANDLE if called with hkey==NULL.
To expand on James's brief response,
This change looks correct, but the other isn't necessary. --Juan