Commit f10be2e8 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

iccvid: Use CRT allocation functions.

parent e90e08b5
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
#include "iccvid_private.h" #include "iccvid_private.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(iccvid); WINE_DEFAULT_DEBUG_CHANNEL(iccvid);
...@@ -353,7 +352,7 @@ static cinepak_info *decode_cinepak_init(void) ...@@ -353,7 +352,7 @@ static cinepak_info *decode_cinepak_init(void)
cinepak_info *cvinfo; cinepak_info *cvinfo;
int i; int i;
cvinfo = heap_alloc( sizeof (cinepak_info) ); cvinfo = malloc(sizeof(cinepak_info));
if( !cvinfo ) if( !cvinfo )
return NULL; return NULL;
cvinfo->strip_num = 0; cvinfo->strip_num = 0;
...@@ -374,10 +373,10 @@ static void free_cvinfo( cinepak_info *cvinfo ) ...@@ -374,10 +373,10 @@ static void free_cvinfo( cinepak_info *cvinfo )
for( i=0; i<cvinfo->strip_num; i++ ) for( i=0; i<cvinfo->strip_num; i++ )
{ {
heap_free(cvinfo->v4_codebook[i]); free(cvinfo->v4_codebook[i]);
heap_free(cvinfo->v1_codebook[i]); free(cvinfo->v1_codebook[i]);
} }
heap_free( cvinfo ); free( cvinfo );
} }
typedef void (*fn_cvid_v1)(unsigned char *frm, unsigned char *limit, typedef void (*fn_cvid_v1)(unsigned char *frm, unsigned char *limit,
...@@ -481,13 +480,13 @@ static void decode_cinepak(cinepak_info *cvinfo, unsigned char *buf, int size, ...@@ -481,13 +480,13 @@ static void decode_cinepak(cinepak_info *cvinfo, unsigned char *buf, int size,
for(i = cvinfo->strip_num; i < frame.strips; i++) for(i = cvinfo->strip_num; i < frame.strips; i++)
{ {
if((cvinfo->v4_codebook[i] = heap_alloc(sizeof(cvid_codebook) * 260)) == NULL) if((cvinfo->v4_codebook[i] = malloc(sizeof(cvid_codebook) * 260)) == NULL)
{ {
ERR("CVID: codebook v4 alloc err\n"); ERR("CVID: codebook v4 alloc err\n");
return; return;
} }
if((cvinfo->v1_codebook[i] = heap_alloc(sizeof(cvid_codebook) * 260)) == NULL) if((cvinfo->v1_codebook[i] = malloc(sizeof(cvid_codebook) * 260)) == NULL)
{ {
ERR("CVID: codebook v1 alloc err\n"); ERR("CVID: codebook v1 alloc err\n");
return; return;
...@@ -941,7 +940,7 @@ static LRESULT ICCVID_Close( ICCVID_Info *info ) ...@@ -941,7 +940,7 @@ static LRESULT ICCVID_Close( ICCVID_Info *info )
return 0; return 0;
if( info->cvinfo ) if( info->cvinfo )
free_cvinfo( info->cvinfo ); free_cvinfo( info->cvinfo );
heap_free( info ); free( info );
return 1; return 1;
} }
...@@ -1001,7 +1000,7 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, ...@@ -1001,7 +1000,7 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
if (icinfo && compare_fourcc(icinfo->fccType, ICTYPE_VIDEO)) return 0; if (icinfo && compare_fourcc(icinfo->fccType, ICTYPE_VIDEO)) return 0;
info = heap_alloc( sizeof (ICCVID_Info) ); info = malloc(sizeof(ICCVID_Info));
if( info ) if( info )
{ {
info->dwMagic = ICCVID_MAGIC; info->dwMagic = ICCVID_MAGIC;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment