www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/05/12:18:51

Date: Mon, 5 Jan 1998 19:16:21 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Mr. Lin" <loy AT tm DOT net DOT my>
cc: djgpp AT delorie DOT com
Subject: Re: Problem with function biosdisk() ... unexplained !
In-Reply-To: <68q9oq$1hj$1@news.tm.net.my>
Message-ID: <Pine.SUN.3.91.980105191600.768H-100000@is>
MIME-Version: 1.0

On Mon, 5 Jan 1998, Mr. Lin wrote:

> I was experimenting with the calls biosdisk() and _bios_disk() from DJGPP
> 2.0.  It seems like both of these calls gives different return
> values and I can't seem to explain it. Could it be a bug ??

I think the bug is in your code.  The following line:

>        diskInfo.buffer = &recordBuffer ;

should have said this instead:

>        diskInfo.buffer = recordBuffer ;

In other words, if you need an address of a buffer, pass its name, not
the address of its name.

- Raw text -


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