winedbg: Don't assert on some lvalue's write conditions.
This commit is contained in:
parent
22da105b4d
commit
e5555b0fb5
|
@ -121,9 +121,13 @@ BOOL memory_write_value(const struct dbg_lvalue* lvalue, DWORD size, void* value
|
|||
BOOL ret = TRUE;
|
||||
DWORD64 os;
|
||||
|
||||
os = ~(DWORD64)size;
|
||||
types_get_info(&lvalue->type, TI_GET_LENGTH, &os);
|
||||
assert(size == os);
|
||||
if (!types_get_info(&lvalue->type, TI_GET_LENGTH, &os)) return FALSE;
|
||||
if (size != os)
|
||||
{
|
||||
dbg_printf("Size mismatch in memory_write_value, got %u from type while expecting %u\n",
|
||||
(DWORD)os, size);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* FIXME: only works on little endian systems */
|
||||
if (lvalue->cookie == DLV_TARGET)
|
||||
|
|
Loading…
Reference in New Issue