1
0
Fork 0

DBG: fixed a warning + a crash on x64

This commit is contained in:
Mr. eXoDia 2014-08-06 23:13:21 +02:00
parent b38a55bffb
commit 2522571266
2 changed files with 4 additions and 6 deletions

View File

@ -1602,7 +1602,7 @@ bool dbggetdefjit(char* jit_entry)
bool dbgsetjit(char* jit_cmd, arch arch_in, arch* arch_out)
{
DWORD jit_cmd_size = strlen(jit_cmd);
DWORD jit_cmd_size = (DWORD)strlen(jit_cmd);
return _readwritejitkey(jit_cmd, & jit_cmd_size, "Debugger", arch_in, arch_out, NULL, true);
}

View File

@ -109,11 +109,9 @@ bool varnew(const char* name, uint value, VAR_TYPE type)
if(i)
var.alias = firstName;
var.type = type;
VAR_VALUE varvalue;
varvalue.size = sizeof(uint);
varvalue.type = VAR_UINT;
varvalue.u.value = value;
varsetvalue(&var, &varvalue);
var.value.size = sizeof(uint);
var.value.type = VAR_UINT;
var.value.u.value = value;
variables.insert(std::make_pair(name_, var));
}
return true;