Array selector data begins with 4 bytes length, followed by string bytes. Right after the string starts the code blob, that we access with (uint32_t *)(ptr + string_size) + 1. There is no separate field to care about at (ptr + string_size).
From: Nikolay Sivov nsivov@codeweavers.com
Array selector data begins with 4 bytes length, followed by string bytes. Right after the string starts the code blob, that we access with (uint32_t *)(ptr + string_size) + 1. There is no separate field to care about at (ptr + string_size). --- dlls/d3dx9_36/effect.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c index 081856af33d..9e20c1d90b6 100644 --- a/dlls/d3dx9_36/effect.c +++ b/dlls/d3dx9_36/effect.c @@ -6054,7 +6054,6 @@ static HRESULT d3dx_parse_array_selector(struct d3dx_effect *effect, struct d3dx FIXME("Referenced parameter %s not found.\n", ptr + 4); return D3DXERR_INVALIDDATA; } - TRACE("Unknown u32: 0x%.8x.\n", *(uint32_t *)(ptr + string_size));
if (string_size % sizeof(uint32_t)) FIXME("Unaligned string_size %u.\n", string_size);
This merge request was approved by Matteo Bruni.