Alex Villacís Lasso a_villacis@palosanto.com writes:
The exception handler is supposed to return NULL in case of a page fault (such as trying to access a NULL pointer, as is your case). However, I think I saw a discussion somewhere in wine-devel that advised *not* to return from inside an __EXCEPT clause of an exception handler in Wine (most probably because __ENDTRY needs to run in order to clean up). If this is true, then RtlImageNtHeader is violating this rule. Your segmentation fault might be the expected result of a violation of the return rule. Could anybody in wine-devel speak up to confirm or refute this observation about exception handlers?
Returning from inside the __TRY block is forbidden, but returning from the __EXCEPT block is fine.