Mail Archives: djgpp/1998/01/05/12:18:51
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 -