On Wed Sep 14 11:53:01 2022 +0000, Santino Mazza wrote:
Because it simplifies the implementation for saving the registry into the file when NtClose get's called. If I want to keep the object handle implementation the server should take control for closing the file handle, and I don't like that idea so much, I think the caller should be responsible for closing the objects it opens.
Ok, let me look into that more.
There are a couple more changes you could make in the meantime: - Split the `REG_LOAD_APP_KEY` logic and the return key logic into two commits. - Move the `NtClose()` outside of the `SERVER_START_REQ` block.