Fix for bugs #7442, #7523. Removed the code in WindowProc that was setting the

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:
kmcclusk%netscape.com 1999-06-03 20:03:53 +00:00
Родитель 502b9ca498
Коммит b9c989854f
1 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -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;