Bug 638756 - Stop occasional crashes when using mouse wheel when the Elantech touchpad hack is enabled r=jmathies a=dveditz
authorCameron McCormack <cam@mcc.id.au>
Wed, 16 Mar 2011 12:08:53 +1300
changeset 63370 f026ed05192127db1a1b6c3df5897310621742ca
parent 63369 d4b16b847d9228a6cb54cc8656e8ef1e8e5f86e1
child 63371 7124cc6d660d52174328694b8f74447a9d71d938
push id32
push usereakhgari@mozilla.com
push dateFri, 01 Apr 2011 21:29:34 +0000
reviewersjmathies, dveditz
bugs638756
milestone2.0pre
Bug 638756 - Stop occasional crashes when using mouse wheel when the Elantech touchpad hack is enabled r=jmathies a=dveditz
widget/src/windows/nsWindow.cpp
--- a/widget/src/windows/nsWindow.cpp
+++ b/widget/src/windows/nsWindow.cpp
@@ -7753,17 +7753,17 @@ HWND nsWindow::FindOurWindowAtPoint(cons
   info.mInPoint = aPoint;
   info.mOutHWND = 0;
 
   // This will enumerate all top-level windows in order from top to bottom.
   EnumWindows(FindOurWindowAtPointCallback, reinterpret_cast<LPARAM>(&info));
   return info.mOutHWND;
 }
 
-typedef DWORD (*GetProcessImageFileNameProc)(HANDLE, LPWSTR, DWORD);
+typedef DWORD (WINAPI *GetProcessImageFileNameProc)(HANDLE, LPWSTR, DWORD);
 
 // Determine whether the given HWND is the handle for the Elantech helper
 // window.  The helper window cannot be distinguished based on its
 // window class, so we need to check if it is owned by the helper process,
 // ETDCtrl.exe.
 static PRBool IsElantechHelperWindow(HWND aHWND)
 {
   static HMODULE hPSAPI = ::LoadLibraryW(L"psapi.dll");