Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f4c813f7
Commit
f4c813f7
authored
Jul 12, 2004
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 12, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove lvalue casts that are no longer supported.
parent
36123b55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
int21.c
dlls/winedos/int21.c
+13
-13
No files found.
dlls/winedos/int21.c
View file @
f4c813f7
...
...
@@ -3889,7 +3889,8 @@ static int INT21_FindNextFCB( CONTEXT86 *context )
{
BYTE
*
fcb
=
(
BYTE
*
)
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Edx
);
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
;
BYTE
attr
;
int
n
;
...
...
@@ -3920,26 +3921,25 @@ static int INT21_FindNextFCB( CONTEXT86 *context )
if
(
*
fcb
==
0xff
)
{
/* place extended FCB header before pResult if called with extended FCB */
*
(
BYTE
*
)
pResult
=
0xff
;
(
BYTE
*
)
pResult
+=
6
;
/* leave reserved field behind */
*
(
BYTE
*
)
pResult
=
entry
.
dwFileAttributes
;
((
BYTE
*
)
pResult
)
++
;
*
pResult
=
0xff
;
pResult
+=
6
;
/* leave reserved field behind */
*
pResult
++
=
entry
.
dwFileAttributes
;
}
*
(
BYTE
*
)
pResult
=
INT21_MapDrive
(
pFCB
->
drive
);
/* DOS_DIRENTRY_LAYOUT after current drive number */
((
BYTE
*
)
pResult
)
++
;
pResult
->
fileattr
=
entry
.
dwFileAttributes
;
pResult
->
cluster
=
0
;
/* what else? */
pResult
->
filesize
=
entry
.
nFileSizeLow
;
memset
(
pResult
->
reserved
,
0
,
sizeof
(
pResult
->
reserved
)
);
*
pResult
++
=
INT21_MapDrive
(
pFCB
->
drive
);
/* DOS_DIRENTRY_LAYOUT after current drive number */
ddl
=
(
DOS_DIRENTRY_LAYOUT
*
)
pResult
;
ddl
->
fileattr
=
entry
.
dwFileAttributes
;
ddl
->
cluster
=
0
;
/* what else? */
ddl
->
filesize
=
entry
.
nFileSizeLow
;
memset
(
ddl
->
reserved
,
0
,
sizeof
(
ddl
->
reserved
)
);
FileTimeToDosDateTime
(
&
entry
.
ftLastWriteTime
,
&
pResult
->
filedate
,
&
pResult
->
filetime
);
&
ddl
->
filedate
,
&
ddl
->
filetime
);
/* Convert file name to FCB format */
if
(
entry
.
cAlternateFileName
[
0
])
INT21_ToDosFCBFormat
(
entry
.
cAlternateFileName
,
nameW
);
else
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment