summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-19 18:40:33 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-19 18:40:33 +0000
commit1baf44577529827ec9f922ae178959b8d0ebca46 (patch)
treebe9ea374595729271713f6822827df17e4f86082 /plugins/Scriver/src
parent4ba7149826b0f006d698e1055cfaf19ecd422cf4 (diff)
clutch for occasional crashes in Scriver
git-svn-id: http://svn.miranda-ng.org/main/trunk@1987 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r--plugins/Scriver/src/richutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Scriver/src/richutil.cpp b/plugins/Scriver/src/richutil.cpp
index 8c562b060c..4336b7dbe9 100644
--- a/plugins/Scriver/src/richutil.cpp
+++ b/plugins/Scriver/src/richutil.cpp
@@ -248,7 +248,7 @@ static LRESULT CALLBACK RichUtil_Proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
return ret;
}
}
- return CallWindowProc(ru->origProc, hwnd, msg, wParam, lParam);
+ return (ru == NULL) ? 0 : CallWindowProc(ru->origProc, hwnd, msg, wParam, lParam);
}
static void RichUtil_ClearUglyBorder(TRichUtil *ru)