RegQueryValueEx() returns error code directly.
authorIain Patterson <me@iain.cx>
Fri, 22 Jul 2016 13:06:32 +0000 (14:06 +0100)
committerIain Patterson <me@iain.cx>
Thu, 28 Jul 2016 15:44:17 +0000 (16:44 +0100)
commitcbce0c7e011a10a153fa3af4ddfe9b8b153647b4
treec620cc1660b3bc2e1d1e9462dc89f97127fb6b2a
parent2a259b54caa08ef6d4dbc99f6fe7ec97837c25e8
RegQueryValueEx() returns error code directly.

Formatting an error message should use the return value not
GetLastError().
registry.cpp