[Bug 21490] Debug build of Chromium aborts on startup because GdiInitializeLanguagePack() returns failure

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jan 25 08:37:47 CST 2010


http://bugs.winehq.org/show_bug.cgi?id=21490





--- Comment #1 from Nikolay Sivov <bunglehead at gmail.com>  2010-01-25 08:37:47 ---
It looks like Chromium doesn't care about return value:
---
  if (GetModuleHandle(L"LPK.DLL") == NULL) {
    // Makes sure lpk.dll is loaded by gdi32 to make sure ExtTextOut() works
    // when buffering into a EMF buffer for printing.
    typedef BOOL (__stdcall *GdiInitializeLanguagePack)(int LoadedShapingDLLs);
    GdiInitializeLanguagePack gdi_init_lpk =
        reinterpret_cast<GdiInitializeLanguagePack>(GetProcAddress(
            GetModuleHandle(L"GDI32.DLL"),
            "GdiInitializeLanguagePack"));
    DCHECK(gdi_init_lpk);
    if (gdi_init_lpk) {
      gdi_init_lpk(0);
    }
  }
---

It just calls it with zero parameter. Or am I wrong?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list