Don't ignore must_exist in open_registry().
authorIain Patterson <me@iain.cx>
Sun, 20 Mar 2016 09:20:40 +0000 (09:20 +0000)
committerIain Patterson <me@iain.cx>
Sun, 20 Mar 2016 09:20:40 +0000 (09:20 +0000)
commit04056eb6ead840b893772711f5a8db10f8ba76c1
tree821a2e8252c194efc1140c35223b14ac585b1fc5
parent838c282576cff8e2f0467eab8965ccaee39075f5
Don't ignore must_exist in open_registry().

A typo meant that we were passing true to the overloaded open_registry()
which also takes an HKEY as a parameter.

As a result we would end up spamming ERROR_FILE_NOT_FOUND when updating
a service via the GUI if there were no hooks to update, ironically in a
section of code whose purpose was to check that it didn't need to do or
report anything.

Thanks Igor Zenkov and James Gleason.
registry.cpp