[Bug 51614] New: NtGdiSetLayout is missing call to release_dc_ptr(dc)

WineHQ Bugzilla wine-bugs at winehq.org
Mon Aug 16 00:54:02 CDT 2021


https://bugs.winehq.org/show_bug.cgi?id=51614

            Bug ID: 51614
           Summary: NtGdiSetLayout is missing call to release_dc_ptr(dc)
           Product: Wine
           Version: 6.15
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: P2
         Component: gdi32
          Assignee: wine-bugs at winehq.org
          Reporter: jinoh.kang.kr at gmail.com
                CC: huw at codeweavers.com, jacek at codeweavers.com,
                    julliard at winehq.org
   Regression SHA1: 22df510eff3ee66bf02230b46eefef64a5bd8f74
      Distribution: ---

Created attachment 70467
  --> https://bugs.winehq.org/attachment.cgi?id=70467
Patch to add back release_dc_ptr(dc) to appropriate place

The commit 22df510eff3ee66bf02230b46eefef64a5bd8f74 (gdi32: Use ntgdi interface
for SetLayout implementation.) deletes a call to release_dc_ptr(dc) following
get_dc_ptr(hdc) in NtGdiSetLayout(HDC,LONG,DWORD).

The thread calling NtGdiSetLayout therefore holds the DC lock indefinitely,
preventing other threads from accessing the device context.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list