• Dmitry Timoshkov's avatar
    rpcrt4: Add an exception handler to NdrAsyncClientCall. · 1df0091d
    Dmitry Timoshkov authored
    NdrClientCall already uses TRY/EXCEPT block if the procedure has
    Oi_HAS_COMM_OR_FAULT in its Oi_flags, I've added similar block
    to NdrAsyncClientCall but without mapping the fault code using
    CommFaultOffsets because NdrAsyncClientCall doesn't have this
    implemented.
    
    An installer that I have here calls NdrAsyncClientCall in order
    to query status of a not yet installed service, and that leads
    to a crash due to RaiseException from inside of NdrAsyncClientCall.
    With this patch it no longer crashes on an unhandled exception,
    and then installs the service.
    Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    1df0091d
ndr_stubless.c 66.8 KB