summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-10 06:31:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-10 06:31:26 (GMT)
commitb00d1de731f133e5ff29b5abcead406d8388230a (patch)
tree9bdd1ad9566efdcec88b38e6027257dc5e0cc1b0 /win
parentd5a1cc52cf08703de2efb17dbc8eb5cc48a94a9f (diff)
parent3bc8052525161bf1c98f901f4423eaf0ae9f5f65 (diff)
downloadtk-b00d1de731f133e5ff29b5abcead406d8388230a.zip
tk-b00d1de731f133e5ff29b5abcead406d8388230a.tar.gz
tk-b00d1de731f133e5ff29b5abcead406d8388230a.tar.bz2
Fix [72de53dab2]: unreachable code after Tcl_Panic() in tkWinDraw.c.
Diffstat (limited to 'win')
-rw-r--r--win/tkWinDraw.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c
index 1897bc8..3127a3b 100644
--- a/win/tkWinDraw.c
+++ b/win/tkWinDraw.c
@@ -588,9 +588,6 @@ TkPutImage(
}
if (!bitmap) {
Tcl_Panic("Fail to allocate bitmap\n");
- 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,