ntdll: Don't modify LockCount in RtlLeaveCriticalSection if section is not acquired.

Sebastian Lackner sebastian at fds-team.de
Tue Mar 7 09:28:34 CST 2017


On 06.03.2017 12:51, Jacek Caban wrote:
> v2: Using importlib for Rtl* functions and fixes spotted by Sebastian.
> 
> Signed-off-by: Jacek Caban <jacek at codeweavers.com>
> ---
>  dlls/ntdll/critsection.c |  6 ++++-
>  dlls/ntdll/tests/rtl.c   | 60
> ++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 65 insertions(+), 1 deletion(-)
> 

There might be more issues left (for example, does Windows try to deal
with situations where the CS is acquired by another thread?), but this
change seems fine for now.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>




More information about the wine-patches mailing list