reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 9df412f6cda03eeea4e2c8e76e104a4eea43e928
parent 3b10c9a838db95b4dc9256b6c05a9fc02f488ffc
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Mon,  1 Feb 2016 01:46:21 -0500

fix small english mistakes in a comment block

Diffstat:
Msrc/dialog.cpp | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/dialog.cpp b/src/dialog.cpp @@ -71,9 +71,12 @@ WDL_DLGRET Dialog::Proc(HWND handle, UINT msg, WPARAM wParam, LPARAM lParam) dlg->onContextMenu((HWND)wParam, LOWORD(lParam), HIWORD(lParam)); break; case WM_DESTROY: - // On Windows, WM_DESTROY is emitted in place of WM_INITDIALOG but without - // our custom lParam pointer if the dialog resource is invalid - // (ie. because of an unloaded dll) + // On Windows, WM_DESTROY is emitted in place of WM_INITDIALOG + // if the dialog resource is invalid (eg. because of an unloaded dll). + // + // When this happens, neither lParam nor s_instances will contain + // a pointer to the Dialog instance, so there is nothing we can do. + // At least, let's try to not crash. if(dlg) dlg->onDestroy(); break;