Hugh McMaster (@hmc) commented about programs/reg/tests/add.c:
- 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);
- ok(r == REG_EXIT_SUCCESS, "Unexpected exit code %ld.\n", r);
- run_reg_exe("reg add HKCU\" KEY_BASE " /v qword0 /t REG_QWORD /f /d", &r);
- ok(r == REG_EXIT_FAILURE, "Unexpected exit code %lu.\n", r);
- run_reg_exe("reg add HKCU\" KEY_BASE " /v qword1 /t REG_QWORD /f", &r);
Same here.