On 08.11.2015 13:09, Alistair Leslie-Hughes wrote:
- ret = RegOpenKeyW(hkeyfilename, section, &hkeysection);
- RegCloseKey(hkeyfilename);
- return hkeysection;
I didn't mean that you need to remove error handling completely, last return in previous iteration 'return ret ? ...' was fine.