From fdf6c4e28e01c8a0e8e12dc8c2295dcb8b7ab392 Mon Sep 17 00:00:00 2001 From: "aaronl%netscape.com" Date: Fri, 25 Oct 2002 00:03:47 +0000 Subject: [PATCH] Bug 173791. Accessibility API bug: GWL_ID (Control ID) is only supposed to report 0 (UI) or 1 (content). r=jgaunt, sr=bzbarsky, a=roc+moz git-svn-id: svn://10.0.0.236/trunk@132476 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/windows/nsWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/widget/src/windows/nsWindow.cpp b/mozilla/widget/src/windows/nsWindow.cpp index 995fbd0f6b5..c396678bc41 100644 --- a/mozilla/widget/src/windows/nsWindow.cpp +++ b/mozilla/widget/src/windows/nsWindow.cpp @@ -1546,11 +1546,11 @@ nsresult nsWindow::StandardWindowCreate(nsIWidget *aParent, #ifdef MOZ_UNICODE LONG contentType = aInitData? aInitData->mContentType: (parent? nsToolkit::mGetWindowLong(parent, GWL_ID): -1); LONG isContent = (contentType == 1 || contentType == 2); - nsToolkit::mSetWindowLong(mWnd, GWL_ID, contentType); + nsToolkit::mSetWindowLong(mWnd, GWL_ID, isContent); #else LONG contentType = aInitData? aInitData->mContentType: (parent? ::GetWindowLong(parent, GWL_ID): -1); LONG isContent = (contentType == 1 || contentType == 2); - ::SetWindowLong(mWnd, GWL_ID, contentType); + ::SetWindowLong(mWnd, GWL_ID, isContent); #endif // call the event callback to notify about creation