From 293df1a23348bbbc9e5f4ea905ad7adaf9915535 Mon Sep 17 00:00:00 2001 From: xy Date: Sun, 12 Aug 2012 15:33:16 +0800 Subject: [PATCH] Bugfix: scroll up/down crash. --- src/subtitles/RTS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subtitles/RTS.cpp b/src/subtitles/RTS.cpp index 191e96827..d0ad56510 100644 --- a/src/subtitles/RTS.cpp +++ b/src/subtitles/RTS.cpp @@ -1319,7 +1319,7 @@ GrayImage2* CClipper::PaintScrollClipper() if(k < h) { BYTE* am = &data[k*w]; - memset(result, 0, am - data); + memset(data, 0, am - data); for(int j = k; j < l; j++, a += da) { for(int i = 0; i < w; i++, am++)