Bug 422769 - reduce narrow Windows API calls in accessibility, original patch by Brad Lassey <blassey@mozilla.com>, r=aleventhal

This commit is contained in:
Brian Crowder 2008-08-27 14:44:54 -07:00
parent 2103da0961
commit e97adb1b00
2 changed files with 2 additions and 2 deletions

View File

@ -595,7 +595,7 @@ void nsAccessNodeWrap::InitAccessibility()
}
if (!gmUserLib) {
gmUserLib =::LoadLibrary("USER32.DLL");
gmUserLib =::LoadLibraryW(L"USER32.DLL");
}
if (gmUserLib) {

View File

@ -158,7 +158,7 @@ STDMETHODIMP nsAccessibleWrap::AccessibleObjectFromWindow(HWND hwnd,
{
// open the dll dynamically
if (!gmAccLib)
gmAccLib =::LoadLibrary("OLEACC.DLL");
gmAccLib =::LoadLibraryW(L"OLEACC.DLL");
if (gmAccLib) {
if (!gmAccessibleObjectFromWindow)