Init uc on cpu model read
This commit is contained in:
3
uc.c
3
uc.c
@ -2065,6 +2065,9 @@ uc_err uc_ctl(uc_engine *uc, uc_control_type control, ...)
|
|||||||
|
|
||||||
case UC_CTL_CPU_MODEL: {
|
case UC_CTL_CPU_MODEL: {
|
||||||
if (rw == UC_CTL_IO_READ) {
|
if (rw == UC_CTL_IO_READ) {
|
||||||
|
|
||||||
|
UC_INIT(uc);
|
||||||
|
|
||||||
int *model = va_arg(args, int *);
|
int *model = va_arg(args, int *);
|
||||||
*model = uc->cpu_model;
|
*model = uc->cpu_model;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user