Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
84b93566
Commit
84b93566
authored
Jan 24, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedos: Remove unneeded casts.
parent
f6d1767d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
14 deletions
+12
-14
devices.c
dlls/winedos/devices.c
+2
-2
dosmem.c
dlls/winedos/dosmem.c
+1
-1
int21.c
dlls/winedos/int21.c
+3
-3
int2f.c
dlls/winedos/int2f.c
+3
-5
ioports.c
dlls/winedos/ioports.c
+1
-1
vga.c
dlls/winedos/vga.c
+1
-1
vxd.c
dlls/winedos/vxd.c
+1
-1
No files found.
dlls/winedos/devices.c
View file @
84b93566
...
...
@@ -145,8 +145,8 @@ static REQUEST_HEADER * get_hdr(int id, void**extra)
{
void
**
hdr_ptr
=
strategy_data
[
id
];
if
(
extra
)
*
extra
=
hdr_ptr
?
(
void
*
)(
hdr_ptr
+
1
)
:
(
void
*
)
NULL
;
return
hdr_ptr
?
*
hdr_ptr
:
(
void
*
)
NULL
;
*
extra
=
hdr_ptr
?
(
void
*
)(
hdr_ptr
+
1
)
:
NULL
;
return
hdr_ptr
?
*
hdr_ptr
:
NULL
;
}
static
void
WINAPI
nul_strategy
(
CONTEXT86
*
ctx
)
...
...
dlls/winedos/dosmem.c
View file @
84b93566
...
...
@@ -300,7 +300,7 @@ LPVOID DOSMEM_AllocBlock(UINT size, UINT16* pseg)
}
/* curr is the found block */
curr
->
psp
=
psp
;
if
(
pseg
)
*
pseg
=
(((
char
*
)
curr
)
+
16
-
(
char
*
)
DOSMEM_dosmem
)
>>
4
;
if
(
pseg
)
*
pseg
=
(((
char
*
)
curr
)
+
16
-
DOSMEM_dosmem
)
>>
4
;
return
(
LPVOID
)
((
char
*
)
curr
+
16
);
}
}
...
...
dlls/winedos/int21.c
View file @
84b93566
...
...
@@ -1720,7 +1720,7 @@ static void INT21_RandomBlockReadFromFCB( CONTEXT86 *context )
}
else
{
disk_transfer_area
=
INT21_GetCurrentDTA
(
context
);
records_requested
=
CX_reg
(
context
);
bytes_requested
=
(
UINT
)
records_requested
*
fcb
->
logical_record_size
;
bytes_requested
=
records_requested
*
fcb
->
logical_record_size
;
bytes_read
=
_lread
((
HFILE
)
handle
,
disk_transfer_area
,
bytes_requested
);
if
(
bytes_read
!=
bytes_requested
)
{
TRACE
(
"_lread(%d, %p, %d) failed with %d
\n
"
,
...
...
@@ -1811,7 +1811,7 @@ static void INT21_RandomBlockWriteToFCB( CONTEXT86 *context )
}
else
{
disk_transfer_area
=
INT21_GetCurrentDTA
(
context
);
records_requested
=
CX_reg
(
context
);
bytes_requested
=
(
UINT
)
records_requested
*
fcb
->
logical_record_size
;
bytes_requested
=
records_requested
*
fcb
->
logical_record_size
;
bytes_written
=
_lwrite
((
HFILE
)
handle
,
(
LPCSTR
)
disk_transfer_area
,
bytes_requested
);
if
(
bytes_written
!=
bytes_requested
)
{
TRACE
(
"_lwrite(%d, %p, %d) failed with %d
\n
"
,
...
...
@@ -5006,7 +5006,7 @@ void WINAPI DOSVM_Int21Handler( CONTEXT86 *context )
}
else
{
LPVOID
address
=
(
void
*
)(
(
DWORD
)
context
->
SegEs
<<
4
);
LPVOID
address
=
(
void
*
)(
context
->
SegEs
<<
4
);
UINT
blocksize
=
DOSMEM_ResizeBlock
(
address
,
newsize
,
FALSE
);
RESET_CFLAG
(
context
);
...
...
dlls/winedos/int2f.c
View file @
84b93566
...
...
@@ -556,7 +556,7 @@ static void MSCDEX_Request(BYTE *driver_request, BOOL dorealmode)
* the following tests are wrong because lots of functions don't require the
* tray to be closed with a CD inside
*/
TRACE
(
"CDROM device driver -> command <%d>
\n
"
,
(
unsigned
char
)
driver_request
[
2
]);
TRACE
(
"CDROM device driver -> command <%d>
\n
"
,
driver_request
[
2
]);
MSCDEX_Dump
(
"Beg"
,
driver_request
,
dorealmode
);
...
...
@@ -846,8 +846,7 @@ static void MSCDEX_Request(BYTE *driver_request, BOOL dorealmode)
at
=
PTR_AT
(
driver_request
,
20
,
DWORD
);
TRACE
(
" --> SEEK AUDIO mode :<0x%02X>, [%d]
\n
"
,
(
BYTE
)
driver_request
[
13
],
at
);
TRACE
(
" --> SEEK AUDIO mode :<0x%02X>, [%d]
\n
"
,
driver_request
[
13
],
at
);
switch
(
driver_request
[
13
])
{
case
1
:
/* Red book addressing mode = 0:m:s:f */
...
...
@@ -881,8 +880,7 @@ static void MSCDEX_Request(BYTE *driver_request, BOOL dorealmode)
beg
=
end
=
PTR_AT
(
driver_request
,
14
,
DWORD
);
end
+=
PTR_AT
(
driver_request
,
18
,
DWORD
);
TRACE
(
" --> PLAY AUDIO mode :<0x%02X>, [%d-%d]
\n
"
,
(
BYTE
)
driver_request
[
13
],
beg
,
end
);
TRACE
(
" --> PLAY AUDIO mode :<0x%02X>, [%d-%d]
\n
"
,
driver_request
[
13
],
beg
,
end
);
switch
(
driver_request
[
13
])
{
case
1
:
...
...
dlls/winedos/ioports.c
View file @
84b93566
...
...
@@ -608,7 +608,7 @@ void WINAPI DOSVM_outport( int port, int size, DWORD value )
break
;
case
0x61
:
parport_8255
[
1
]
=
(
BYTE
)
value
;
if
(((
(
BYTE
)
parport_8255
[
1
]
&
3
)
==
3
)
&&
(
tmr_8253
[
2
].
countmax
!=
1
))
if
(((
parport_8255
[
1
]
&
3
)
==
3
)
&&
(
tmr_8253
[
2
].
countmax
!=
1
))
{
TRACE
(
"Beep (freq: %d) !
\n
"
,
1193180
/
tmr_8253
[
2
].
countmax
);
Beep
(
1193180
/
tmr_8253
[
2
].
countmax
,
20
);
...
...
dlls/winedos/vga.c
View file @
84b93566
...
...
@@ -553,7 +553,7 @@ char VGA_GetColor16(int reg)
{
if
(
!
lpddraw
)
return
0
;
return
(
char
)
vga_16_palette
[
reg
];
return
vga_16_palette
[
reg
];
}
/* set all 17 [char wide] colors at once in 16 color mode. */
...
...
dlls/winedos/vxd.c
View file @
84b93566
...
...
@@ -875,7 +875,7 @@ void WINAPI VXD_Win32s( CONTEXT86 *context )
* Output: EAX: 1 if OK
*/
TRACE
(
"UnMapModule: %x
\n
"
,
(
DWORD
)
W32S_APP2WINE
(
context
->
Edx
));
TRACE
(
"UnMapModule: %x
\n
"
,
W32S_APP2WINE
(
context
->
Edx
));
/* As we didn't map anything, there's nothing to unmap ... */
...
...
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