Piotr Caban (@piotr) commented about dlls/msvcp90/exception.c:
INT_PTR i, *ptr = (INT_PTR *)this-1;
for(i=*ptr-1; i>=0; i--)
MSVCP_bad_function_call_dtor(this+i);
operator_delete(ptr);
- } else {
MSVCP_bad_function_call_dtor(this);
if(flags & 1)
operator_delete(this);
- }
- return this;
+}
+DEFINE_THISCALL_WRAPPER(MSVCP_bad_function_call_what, 4) +const char* __thiscall MSVCP_bad_function_call_what(bad_function_call *this)
This function can also be removed.