aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarko Njezic <devnull@localhost>2012-03-01 13:38:41 +0100
committerMarko Njezic <devnull@localhost>2012-03-01 13:38:41 +0100
commit561f9dd9812431fe069de171a65779ae7c30fc88 (patch)
tree83eeaaac1c2ec9976ab5f9d363195b4ee0e8cf94
parentdf978e8fb788b2f0bdcde10635730c83e1119054 (diff)
downloadscintilla-mirror-561f9dd9812431fe069de171a65779ae7c30fc88.tar.gz
Fix unsafe typecast. Bug #3495966.
-rw-r--r--win32/PlatWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 53d94b258..15b3655bf 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -1271,7 +1271,7 @@ void SurfaceD2D::Init(WindowID /* wid */) {
void SurfaceD2D::Init(SurfaceID sid, WindowID) {
Release();
SetScale();
- pRenderTarget = reinterpret_cast<ID2D1HwndRenderTarget *>(sid);
+ pRenderTarget = reinterpret_cast<ID2D1RenderTarget *>(sid);
}
void SurfaceD2D::InitPixMap(int width, int height, Surface *surface_, WindowID) {