From: ShadowFlare Date: Fri, 6 Oct 2006 09:26:50 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?a=commitdiff_plain;h=72348a2de786fe37fccc3600d9c4d3cd0b4f63e9;p=grpapi.git --- diff --git a/grpapi/grpapi.cpp b/grpapi/grpapi.cpp index e332505..6c96c56 100644 --- a/grpapi/grpapi.cpp +++ b/grpapi/grpapi.cpp @@ -472,6 +472,7 @@ HANDLE GRPAPI WINAPI CreateGrp(signed short *lpImageData, WORD nFrames, WORD wMa GrpHeader.wMaxHeight = wMaxHeight; lpFrameHeaders = (FRAMEHEADER *)malloc(nFrames * sizeof(FRAMEHEADER)); lpFrameData = (FRAMEDATA *)malloc(nFrames * sizeof(FRAMEDATA)); + nLastOffset = sizeof(GRPHEADER) + nFrames * sizeof(FRAMEHEADER); for (i = 0; i < nFrames; i++) { // Search for duplicate frames