Commit f4c813f7 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Remove lvalue casts that are no longer supported.

parent 36123b55
...@@ -3889,7 +3889,8 @@ static int INT21_FindNextFCB( CONTEXT86 *context ) ...@@ -3889,7 +3889,8 @@ static int INT21_FindNextFCB( CONTEXT86 *context )
{ {
BYTE *fcb = (BYTE *)CTX_SEG_OFF_TO_LIN(context, context->SegDs, context->Edx); BYTE *fcb = (BYTE *)CTX_SEG_OFF_TO_LIN(context, context->SegDs, context->Edx);
FINDFILE_FCB *pFCB; FINDFILE_FCB *pFCB;
DOS_DIRENTRY_LAYOUT *pResult = (DOS_DIRENTRY_LAYOUT *)INT21_GetCurrentDTA(context); LPBYTE pResult = INT21_GetCurrentDTA(context);
DOS_DIRENTRY_LAYOUT *ddl;
WIN32_FIND_DATAW entry; WIN32_FIND_DATAW entry;
BYTE attr; BYTE attr;
int n; int n;
...@@ -3920,26 +3921,25 @@ static int INT21_FindNextFCB( CONTEXT86 *context ) ...@@ -3920,26 +3921,25 @@ static int INT21_FindNextFCB( CONTEXT86 *context )
if (*fcb == 0xff) if (*fcb == 0xff)
{ {
/* place extended FCB header before pResult if called with extended FCB */ /* place extended FCB header before pResult if called with extended FCB */
*(BYTE *)pResult = 0xff; *pResult = 0xff;
(BYTE *)pResult +=6; /* leave reserved field behind */ pResult += 6; /* leave reserved field behind */
*(BYTE *)pResult = entry.dwFileAttributes; *pResult++ = entry.dwFileAttributes;
((BYTE *)pResult)++;
} }
*(BYTE *)pResult = INT21_MapDrive( pFCB->drive ); /* DOS_DIRENTRY_LAYOUT after current drive number */ *pResult++ = INT21_MapDrive( pFCB->drive ); /* DOS_DIRENTRY_LAYOUT after current drive number */
((BYTE *)pResult)++; ddl = (DOS_DIRENTRY_LAYOUT*)pResult;
pResult->fileattr = entry.dwFileAttributes; ddl->fileattr = entry.dwFileAttributes;
pResult->cluster = 0; /* what else? */ ddl->cluster = 0; /* what else? */
pResult->filesize = entry.nFileSizeLow; ddl->filesize = entry.nFileSizeLow;
memset( pResult->reserved, 0, sizeof(pResult->reserved) ); memset( ddl->reserved, 0, sizeof(ddl->reserved) );
FileTimeToDosDateTime( &entry.ftLastWriteTime, FileTimeToDosDateTime( &entry.ftLastWriteTime,
&pResult->filedate, &pResult->filetime ); &ddl->filedate, &ddl->filetime );
/* Convert file name to FCB format */ /* Convert file name to FCB format */
if (entry.cAlternateFileName[0]) if (entry.cAlternateFileName[0])
INT21_ToDosFCBFormat( entry.cAlternateFileName, nameW ); INT21_ToDosFCBFormat( entry.cAlternateFileName, nameW );
else else
INT21_ToDosFCBFormat( entry.cFileName, nameW ); INT21_ToDosFCBFormat( entry.cFileName, nameW );
WideCharToMultiByte(CP_OEMCP, 0, nameW, 11, pResult->filename, 11, NULL, NULL); WideCharToMultiByte(CP_OEMCP, 0, nameW, 11, ddl->filename, 11, NULL, NULL);
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment