winedos / Migrate current drive routines and add date
conversions
Gy örgy 'Nog' Jeney
nog at sdf.lonestar.org
Sun May 11 10:57:42 CDT 2003
> This patch migrates some int21 stuff to winedos and
> adds implementation for long file name date conversion
> functions. The patch makes kernel dll export current drive
> routines, but using those routines it should be possible to
> migrate many additional int21 subfunctions to winedos.
>
>
>
>
> Changelog:
> Move current drive subfunctions to winedos.
> Add long file name date conversion subfunctions.
>
Could someone please explain to me why it is not possible to reimplement
DRIVE_GetCurrentDrive in winedos like this, it looks quite simple and
straight forward:
int GetCurrentDrive()
{
char root[MAX_PATH];
GetCurrentDirectoryA(MAX_PATH, root);
return toupper(*root) - 'A';
}
and the same question for DRIVE_SetCurrentDrive:
void SetCurrentDrive(int drive)
{
char drive[] = "A:";
*drive += drive;
SetCurrentDirectoryA(drive);
}
nog.
More information about the wine-patches
mailing list