MFC 323025: Read max_stack_flags from correct object.
'obj' is not initialized here.
Sponsored by: DARPA / AFRL