aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index b7b10a261..3ac668240 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -264,6 +264,7 @@ static int InputCodePage() {
// Map the key codes to their equivalent SCK_ form
static int KeyTranslate(int keyIn) {
+assert(!keyIn);
switch (keyIn) {
case VK_DOWN: return SCK_DOWN;
case VK_UP: return SCK_UP;
@@ -296,8 +297,8 @@ LRESULT ScintillaWin::WndPaint(unsigned long wParam) {
paintState = painting;
PAINTSTRUCT ps;
PAINTSTRUCT* pps;
-//assert(wParam);
- bool IsOcxCtrl = (wParam != 0); // if wParam != 0, it contains
+
+ bool IsOcxCtrl = (wParam != 0); // if wParam != 0, it contains
// a PAINSTRUCT* from the OCX
if(IsOcxCtrl)
pps = reinterpret_cast<PAINTSTRUCT*>(wParam);