RtlEnterCriticalSection

Michael Marxmeier mike at marxmeier.com
Thu Oct 18 14:23:58 CDT 2001


Marcus Meissner wrote:

> On Thu, Oct 18, 2001 at 12:22:10AM +0200, Michael Marxmeier wrote:
> 
>>After encountering timeout messages from
>>RtlEnterCriticalSection i had a look at it.
>>
>>Since interlocked_inc() should never return zero
>>the following patch is likely necessary.
>>I was unable to test this as now wine crashes with
>>a segmentation fault (which also terminates gdb).

 >
 > That is a sign that your patch is faulty.

Yep, looks you're right. The lock count is initialied
to -1 so the code is correct.
Seems the critical sections in ole32 do not become
initialized so the lock count is zero ...

> Ciao, Marcus


Thanks for your correction.

Michael







More information about the wine-devel mailing list