Hugh McMaster (@hmc) commented about programs/reg/tests/add.c:
- DWORD r, type, size;
- UINT64 qword;
- HKEY hkey;
- LONG err;
- add_key(HKEY_CURRENT_USER, KEY_BASE, 0, &hkey);
- run_reg_exe("reg add HKCU\" KEY_BASE " /t REG_QWORD /f /d 0x123456789abcdef", &r);
- ok(r == REG_EXIT_SUCCESS, "Unexpected exit code %ld.\n", r);
- qword = 0x123456789abcdef;
- if (r == REG_EXIT_SUCCESS)
verify_reg(hkey, "", REG_QWORD, &qword, sizeof(qword), 0);
- else
win_skip("broken reg.exe detected\n");
- run_reg_exe("reg add HKCU\" KEY_BASE " /ve /t REG_QWORD /f", &r);
I know these are copy/paste tests, but since this one passes, can you please check the value?