delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/04/11:46:41

Message-ID: <3E64CE69.C47443E1@yahoo.com>
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Vesa 2.0
References: <17326N022 AT web2news DOT com> <Xns9333C01A96E16asu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <17482N497 AT web2news DOT com> <Xns9333E7234487Dasu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <17488N404 AT web2news DOT com> <3E6454E3 DOT D29B507C AT yahoo DOT com> <17545N461 AT web2news DOT com>
Lines: 18
Date: Tue, 04 Mar 2003 16:38:49 GMT
NNTP-Posting-Host: 12.90.175.30
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1046795929 12.90.175.30 (Tue, 04 Mar 2003 16:38:49 GMT)
NNTP-Posting-Date: Tue, 04 Mar 2003 16:38:49 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Joel_S wrote:
> 
> Problem solved, I simply changed
> vesa_pm_info = malloc(r.x.cx);
> to
> vesa_pm_info = ( VESA_PM_INFO *)malloc(r.x.cx);

That is NOT a cure.  It indicates that either you were using a C++
compiler on C source, or that you failed to #include <stdlib.h>. 
In either case it is a mistake.  Casts are usually indications of
more serious errors.

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019