A last question on CD label : why case is different FRANCE vs France using
Wine and Windows NT 40 ?
-----Original Message-----
From: Rein Klazes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 18, 2000 16:56
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: CDrom - serial failed
On Tue, 18 Jul 2000 14:43:51 +0200, you wrote:
> On Tue, Jul 18, 2000 at 12:56:45PM +0200, Rein Klazes wrote:
> > Tried some CD's on Windows '98, NT4, 2000 and wine.
> > GetVolInformation() in Windows 2000 and NT4 return serial numbers with
> > the bytes reversed as that on Win'98 and wine.
> >
> > Strange that we never noticed.
> >
> > Rein.
> Oh ?
> Is this due to different GetVolumeInformationA() implementations or due
> to serial number calc differences between GVIA and GVIW ?
> (I guess it's the former)
Same executable compiled from this source:
#include <windows.h>
int main(int argc, char ** argv)
{
int err;
char vol[100];
int ser;
err=GetVolumeInformation(argv[1],vol,100,&ser,NULL,NULL,NULL,NULL);
err=GetLastError();
printf("err 0x%x, serial 0x%08x volume %s\n",err,ser,vol);
}
reports different serials between NT and win 9x. This is consistent
with the value reported by "dir" command.
>
> BTW, I solved the "France" vs. "FRANCE" bug.
> It's because we didn't figure out the "best" CD-ROM volume descriptor
> in DRIVE_ReadSuperblock() as we do in e.g. CDROM_Data_GetSerial().
> Thus we read the ASCII voldesc instead of the Unicode voldesc as we should
> have done.
>
> As I'll have to submit a CD-ROM patch for the label thing anyway,
> could you confirm the changes I need to make to the serial stuff ?:
> I guess I'll have to modify CDROM_Data_GetSerial() to reverse the serial
> in case the version is NT4 or W2K.
I think so too.
Rein.
--
Rein Klazes
[EMAIL PROTECTED]