From: "Shawn M. Chapla" Subject: Re: [PATCH V2 2/2] gdiplus: keep temporary dc from being released. Message-Id: <20200622142508.GB3495789@cw.chapla.email> Date: Mon, 22 Jun 2020 10:25:08 -0400 In-Reply-To: References: > graphics->temp_hbitmap = hbitmap; > + if(graphics->temp_hdc) > + DeleteDC(graphics->temp_hdc); > + > *hdc = graphics->temp_hdc = temp_hdc; > } It looks like this may conflict with a patch set I recently submitted to preserve temporary HDC state across calls to GdipReleaseDC and GdipGetDC. That said, I've run the new tests from the first commit in this patch set with my changes in place and they do pass, so maybe they will fix whatever bad behavior this patch is trying to solve as well. --Shawn