зеркало из https://github.com/mozilla/pjs.git
someWindow local variable based on the lParam for combo box events. Instead someWindow is set using the default code with uses the (HWND hWnd) passed in as an argument. Even though the MS documentation claims you should use the lParam it does not work. This is what was causing the crashes on WIN95.
This commit is contained in:
Родитель
502b9ca498
Коммит
b9c989854f
|
@ -469,14 +469,6 @@ LRESULT CALLBACK nsWindow::WindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM
|
|||
someWindow = (nsWindow*)::GetWindowLong(pnmh->hwndFrom, GWL_USERDATA);
|
||||
}
|
||||
}
|
||||
// Do the same for combo box change notifications.
|
||||
else if (msg == WM_COMMAND) {
|
||||
WORD wNotifyCode = HIWORD(wParam); // notification code
|
||||
if ((CBN_SELENDOK == wNotifyCode) || (CBN_SELENDCANCEL == wNotifyCode)) {
|
||||
someWindow = (nsWindow*)::GetWindowLong((HWND) lParam, GWL_USERDATA);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (nsnull != someWindow) {
|
||||
LRESULT retValue;
|
||||
|
|
Загрузка…
Ссылка в новой задаче