diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-19 18:40:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-19 18:40:33 +0000 |
commit | 1baf44577529827ec9f922ae178959b8d0ebca46 (patch) | |
tree | be9ea374595729271713f6822827df17e4f86082 /plugins/Scriver/src/richutil.cpp | |
parent | 4ba7149826b0f006d698e1055cfaf19ecd422cf4 (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/richutil.cpp')
-rw-r--r-- | plugins/Scriver/src/richutil.cpp | 2 |
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)
|