MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / Undo

Method Undo

WinArk/DeleteValueCommand.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool DeleteValueCommand::Undo() {
40 auto key = Registry::OpenKey(GetPath(), KEY_WRITE);
41 if (!key)
42 return false;
43
44 auto error = key.SetValue(GetName(), _type, _data.get(), _size);
45 ::SetLastError(error);
46 if (ERROR_SUCCESS != error)
47 return false;
48
49 return InvokeCallback(false);
50}

Callers

nothing calls this directly

Calls 1

SetValueMethod · 0.45

Tested by

no test coverage detected