Ignore:
Timestamp:
Aug 20, 1999, 5:03:41 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/winres.cpp

    r597 r599  
    1 /* $Id: winres.cpp,v 1.10 1999-08-20 11:52:44 sandervl Exp $ */
     1/* $Id: winres.cpp,v 1.11 1999-08-20 15:03:31 sandervl Exp $ */
    22
    33/*
     
    133133  OS2ResHandle = 0;
    134134
    135   rc = DosQueryResourceSize(module->hinstance, type, id, &ressize);
     135  rc = DosQueryResourceSize(module->hinstance, orgos2type, id, &ressize);
    136136  if(rc) {
    137137    dprintf(("Win32Resource ctor: DosQueryResourceSize %x %d %d returned %X\n", module->hinstance, type, id, rc));
     
    248248            return(NULL);
    249249        }
    250         winresdata = (char *)malloc(ressize);
     250        winresdata = malloc(ressize+sizeof(WCHAR));
    251251        memcpy(winresdata, resdata, ressize);
     252        *(USHORT *)(&((char *)winresdata)[ressize]) = 0;
    252253        DosFreeResource(resdata);
    253254        return((PVOID)((ULONG)winresdata+2));   //skip length word
Note: See TracChangeset for help on using the changeset viewer.