Changeset 356 for trunk/src/kernel32/resource.cpp
- Timestamp:
- Jul 21, 1999, 1:45:21 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/resource.cpp
r100 r356 1 /* $Id: resource.cpp,v 1. 6 1999-06-10 20:48:01 phallerExp $ */1 /* $Id: resource.cpp,v 1.7 1999-07-21 11:45:21 sandervl Exp $ */ 2 2 3 /*4 *5 * Project Odin Software License can be found in LICENSE.TXT6 *7 */8 3 /* 9 4 * Misc resource procedures … … 11 6 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl) 12 7 * Copyright 1998 Patrick Haller 8 * 9 * 10 * Project Odin Software License can be found in LICENSE.TXT 13 11 * 14 12 */ … … 65 63 PVOID WIN32API LockResource(HGLOBAL hRes) 66 64 { 67 Win32Resource *res = (Win32Resource *)hRes; 68 69 dprintf(("LockResource %X\n", hRes)); 70 71 /* @@@PH */ 72 if (res == NULL) 73 return (NULL); 74 else 75 return res->lockResource(); 65 return (PVOID)hRes; 76 66 } 77 67 //****************************************************************************** 68 //hRes == returned by FindResource(Ex) 78 69 //****************************************************************************** 79 70 HGLOBAL WIN32API LoadResource(HINSTANCE hModule, HRSRC hRes) 80 71 { 81 return (HGLOBAL)hRes; 72 Win32Resource *res = (Win32Resource *)hRes; 73 74 dprintf(("LoadResource %x %X\n", hModule, hRes)); 75 76 /* @@@PH */ 77 if (HIWORD(res) == NULL) { 78 dprintf(("LoadResource %x: invalid hRes %x", hModule, hRes)); 79 return 0; 80 } 81 else return (HGLOBAL)res->lockResource(); 82 82 } 83 83 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.