Small cleanup.

This commit is contained in:
Alexandre Julliard 2003-09-22 21:18:11 +00:00
parent bf5f07a5b4
commit d210bc8949
1 changed files with 4 additions and 12 deletions

View File

@ -158,7 +158,7 @@ static BYTE *GetCurrentDTA( CONTEXT86 *context )
} }
void CreateBPB(int drive, BYTE *data, BOOL16 limited) static void CreateBPB(int drive, BYTE *data, BOOL16 limited)
/* limited == TRUE is used with INT 0x21/0x440d */ /* limited == TRUE is used with INT 0x21/0x440d */
{ {
if (drive > 1) { if (drive > 1) {
@ -400,18 +400,10 @@ static void INT21_ParseFileNameIntoFCB( CONTEXT86 *context )
/* Many calls translate a drive argument like this: /* Many calls translate a drive argument like this:
drive number (00h = default, 01h = A:, etc) drive number (00h = default, 01h = A:, etc)
*/ */
static char drivestring[]="default"; static const char *INT21_DriveName(int drive)
char *INT21_DriveName(int drive)
{ {
if (drive > 0) return wine_dbg_sprintf( "%c:", 'A' + drive - 1 );
if(drive >0) return "default";
{
drivestring[0]= (unsigned char)drive + '@';
drivestring[1]=':';
drivestring[2]=0;
}
return drivestring;
} }
static HFILE16 _lcreat16_uniq( LPCSTR path, INT attr ) static HFILE16 _lcreat16_uniq( LPCSTR path, INT attr )