summaryrefslogtreecommitdiffstats
path: root/win/tkWinDraw.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-10 06:36:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-10 06:36:38 (GMT)
commit70c6e349bd72cef2ade7c9f9ed14865f0fcca101 (patch)
tree681502acaa3f5330c64cc519963869257e66cd3c /win/tkWinDraw.c
parentb597711f3ceb2a7e2f2f0feebd21e85e961dd47d (diff)
parentb00d1de731f133e5ff29b5abcead406d8388230a (diff)
downloadtk-70c6e349bd72cef2ade7c9f9ed14865f0fcca101.zip
tk-70c6e349bd72cef2ade7c9f9ed14865f0fcca101.tar.gz
tk-70c6e349bd72cef2ade7c9f9ed14865f0fcca101.tar.bz2
Fix [72de53dab2]: unreachable code after Tcl_Panic() in tkWinDraw.c
Diffstat (limited to 'win/tkWinDraw.c')
-rw-r--r--win/tkWinDraw.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c
index 042d1b1..4ed8ab2 100644
--- a/win/tkWinDraw.c
+++ b/win/tkWinDraw.c
@@ -587,9 +587,6 @@ TkPutImage(
}
if (!bitmap) {
Tcl_Panic("Fail to allocate bitmap");
- DeleteDC(dcMem);
- TkWinReleaseDrawableDC(d, dc, &state);
- return BadValue;
}
bitmap = SelectObject(dcMem, bitmap);
BitBlt(dc, dest_x, dest_y, (int) width, (int) height, dcMem, src_x, src_y,