| 40 | } |
| 41 | |
| 42 | bool CopyValueCommand::Undo() { |
| 43 | auto target = Registry::OpenKey(_targetPath, KEY_WRITE); |
| 44 | if (!target) |
| 45 | return false; |
| 46 | |
| 47 | auto error = target.DeleteValue(_targetName); |
| 48 | ::SetLastError(error); |
| 49 | if (ERROR_SUCCESS != error) |
| 50 | return false; |
| 51 | |
| 52 | return InvokeCallback(false); |
| 53 | } |
nothing calls this directly
no test coverage detected