Commit 31b09cda authored by Piotr Caban's avatar Piotr Caban Committed by Michael Stefaniuc

msvcrt: Return error when previously parsed type is accessed while demangling simple data type.

Signed-off-by: 's avatarPiotr Caban <piotr@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit 42c27995) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 8389f893
...@@ -904,6 +904,7 @@ static BOOL demangle_datatype(struct parsed_symbol* sym, struct datatype_t* ct, ...@@ -904,6 +904,7 @@ static BOOL demangle_datatype(struct parsed_symbol* sym, struct datatype_t* ct,
case '5': case '6': case '7': case '8': case '9': case '5': case '6': case '7': case '8': case '9':
/* Referring back to previously parsed type */ /* Referring back to previously parsed type */
/* left and right are pushed as two separate strings */ /* left and right are pushed as two separate strings */
if (!pmt_ref) goto done;
ct->left = str_array_get_ref(pmt_ref, (dt - '0') * 2); ct->left = str_array_get_ref(pmt_ref, (dt - '0') * 2);
ct->right = str_array_get_ref(pmt_ref, (dt - '0') * 2 + 1); ct->right = str_array_get_ref(pmt_ref, (dt - '0') * 2 + 1);
if (!ct->left) goto done; if (!ct->left) goto done;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment