How do I write an exception filter?
Stefan Kuhr
winesku at googlemail.com
Thu Jul 10 16:22:33 CDT 2008
Hello everyone,
On Thu, Jul 10, 2008 at 10:30 PM, Stefan Kuhr <winesku at googlemail.com> wrote:
>>
>> __try
>> {
>> PDWORD pdwCommStatus = ....;
>> PDWORD pdwFaultStatus = ....;
>> doSomething();
>> }
>> __except(MySpecialFilter(GetExceptionCode(),pdwCommStatus, pdwFaultStatus) )
>> {
>> // handle the exception
>>
>> }
>
>
> Oh stupid me.
>
> PDWORD pdwCommStatus = ....;
> PDWORD pdwFaultStatus = ....;
>
>
> should be placed outside the try block.
>
Now that we all know that I cannot contribute anymore to improving
NdrClientCall2 and that I also failed to properly write a code snippet
that obeys variable scope rules, could someone give an answer to my
original problem?
OMG, this afternoon is a real disaster :-(
Thanks,
--
Stefan Kuhr
More information about the wine-devel
mailing list