Changeset 2383 for trunk/src/user32/loadres.cpp
- Timestamp:
- Jan 9, 2000, 3:38:30 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/loadres.cpp
r2265 r2383 1 /* $Id: loadres.cpp,v 1.1 7 1999-12-30 11:20:34sandervl Exp $ */1 /* $Id: loadres.cpp,v 1.18 2000-01-09 14:37:09 sandervl Exp $ */ 2 2 3 3 /* … … 390 390 HBITMAP hBitmap = 0; 391 391 392 return LoadBitmapA((hinst == 0) ? hInstanceUser32:hinst,lpszBitmap,0,0,0); 393 #if 0 392 394 if (!hinst) 393 395 { … … 399 401 } else hBitmap = LoadBitmapA(hinst, lpszBitmap, 0, 0, 0); 400 402 dprintf(("LoadBitmapA returned %08xh\n", hBitmap)); 401 403 #endif 402 404 return(hBitmap); 403 405 } … … 409 411 HBITMAP hBitmap = 0; 410 412 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); 428 420 429 421 dprintf(("LoadBitmapW returned %08xh\n", hBitmap));
Note:
See TracChangeset
for help on using the changeset viewer.