diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-07-29 08:22:22 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-07-29 08:22:22 +1000 |
| commit | f24358179685d9ecbc897543488ad56fa9e3a485 (patch) | |
| tree | 8d82f27de0f97cc096af5b36bb55dddf562ef337 /win32/PlatWin.cxx | |
| parent | 4659b518cb8a47101da6e886c254e0223909621e (diff) | |
| download | scintilla-mirror-f24358179685d9ecbc897543488ad56fa9e3a485.tar.gz | |
Backport: Use dynamic_cast for SurfaceGDI::Copy as it will fail better if a mistake made.
Backport of changeset 8464:73514a371867.
Diffstat (limited to 'win32/PlatWin.cxx')
| -rw-r--r-- | win32/PlatWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 6cfb02328..b595308d4 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -982,7 +982,7 @@ void SurfaceGDI::Copy(PRectangle rc, Point from, Surface &surfaceSource) { ::BitBlt(hdc, static_cast<int>(rc.left), static_cast<int>(rc.top), static_cast<int>(rc.Width()), static_cast<int>(rc.Height()), - static_cast<SurfaceGDI &>(surfaceSource).hdc, + dynamic_cast<SurfaceGDI &>(surfaceSource).hdc, static_cast<int>(from.x), static_cast<int>(from.y), SRCCOPY); } |
