Ignore:
Timestamp:
Jan 9, 2000, 3:38:30 PM (26 years ago)
Author:
sandervl
Message:

Several updates/bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/loadres.cpp

    r2265 r2383  
    1 /* $Id: loadres.cpp,v 1.17 1999-12-30 11:20:34 sandervl Exp $ */
     1/* $Id: loadres.cpp,v 1.18 2000-01-09 14:37:09 sandervl Exp $ */
    22
    33/*
     
    390390 HBITMAP hBitmap = 0;
    391391
     392  return LoadBitmapA((hinst == 0) ? hInstanceUser32:hinst,lpszBitmap,0,0,0);
     393#if 0
    392394  if (!hinst)
    393395  {
     
    399401  } else hBitmap = LoadBitmapA(hinst, lpszBitmap, 0, 0, 0);
    400402  dprintf(("LoadBitmapA returned %08xh\n", hBitmap));
    401 
     403#endif
    402404  return(hBitmap);
    403405}
     
    409411 HBITMAP hBitmap = 0;
    410412
    411   if (!hinst)
    412   {
    413     if(IsSystemBitmap((ULONG *)&lpszBitmap))
    414     {
    415       hBitmap = O32_LoadBitmap(hInstanceUser32,(LPCSTR)lpszBitmap);
    416       if (!hBitmap) hBitmap = O32_LoadBitmap(hinst,(LPCSTR)lpszBitmap);
    417     } else hBitmap = 0;
    418   } else
    419   {
    420     if(HIWORD(lpszBitmap) != 0)
    421       lpszBitmap = (LPWSTR)UnicodeToAsciiString((LPWSTR)lpszBitmap);
    422 
    423     hBitmap = LoadBitmapA(hinst, (LPSTR)lpszBitmap, 0, 0, 0);
    424 
    425     if(HIWORD(lpszBitmap) != 0)
    426       FreeAsciiString((LPSTR)lpszBitmap);
    427   }
     413  if(HIWORD(lpszBitmap) != 0)
     414    lpszBitmap = (LPWSTR)UnicodeToAsciiString((LPWSTR)lpszBitmap);
     415
     416  hBitmap = LoadBitmapA((hinst == 0) ? hInstanceUser32:hinst, (LPSTR)lpszBitmap, 0, 0, 0);
     417
     418  if(HIWORD(lpszBitmap) != 0)
     419    FreeAsciiString((LPSTR)lpszBitmap);
    428420
    429421  dprintf(("LoadBitmapW returned %08xh\n", hBitmap));
Note: See TracChangeset for help on using the changeset viewer.