3 Mar
2009
3 Mar
'09
8:26 p.m.
Andreas Rosenberg wrote: + if ( !lpcchSize ) { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + SetLastError(ERROR_MORE_DATA); + } + } + } + else + SetLastError(ERROR_REGISTRY_CORRUPT); + } + else + SetLastError(ERROR_REGISTRY_CORRUPT); return FALSE; All these SetLastError are still potentially wrong since you don't check this error codes in your tests.