Changeset 599 for trunk/src/kernel32/winres.cpp
- Timestamp:
- Aug 20, 1999, 5:03:41 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winres.cpp
r597 r599 1 /* $Id: winres.cpp,v 1.1 0 1999-08-20 11:52:44sandervl Exp $ */1 /* $Id: winres.cpp,v 1.11 1999-08-20 15:03:31 sandervl Exp $ */ 2 2 3 3 /* … … 133 133 OS2ResHandle = 0; 134 134 135 rc = DosQueryResourceSize(module->hinstance, type, id, &ressize);135 rc = DosQueryResourceSize(module->hinstance, orgos2type, id, &ressize); 136 136 if(rc) { 137 137 dprintf(("Win32Resource ctor: DosQueryResourceSize %x %d %d returned %X\n", module->hinstance, type, id, rc)); … … 248 248 return(NULL); 249 249 } 250 winresdata = (char *)malloc(ressize);250 winresdata = malloc(ressize+sizeof(WCHAR)); 251 251 memcpy(winresdata, resdata, ressize); 252 *(USHORT *)(&((char *)winresdata)[ressize]) = 0; 252 253 DosFreeResource(resdata); 253 254 return((PVOID)((ULONG)winresdata+2)); //skip length word
Note:
See TracChangeset
for help on using the changeset viewer.