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
d3dba4e5
Commit
d3dba4e5
authored
Sep 12, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed gcc 4.0 warnings.
parent
88459911
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
23 deletions
+23
-23
int21.c
dlls/winedos/int21.c
+9
-9
mci.c
dlls/winmm/mci.c
+6
-6
message16.c
dlls/winmm/message16.c
+4
-4
winemm.h
dlls/winmm/winemm.h
+4
-4
No files found.
dlls/winedos/int21.c
View file @
d3dba4e5
...
...
@@ -521,7 +521,7 @@ static void INT21_FillHeap( INT21_HEAP *heap )
*/
heap
->
filename_size
=
8
+
strlen
(
terminators
);
heap
->
filename_illegal_size
=
strlen
(
terminators
);
strcpy
(
heap
->
filename_illegal_table
,
terminators
);
memcpy
(
heap
->
filename_illegal_table
,
terminators
,
heap
->
filename_illegal_size
);
heap
->
filename_reserved1
=
0x01
;
heap
->
filename_lowest
=
0x00
;
...
...
@@ -1484,7 +1484,7 @@ static void INT21_SequentialWriteToFCB( CONTEXT86 *context )
AL_result
=
0x01
;
/* disk full */
}
else
{
disk_transfer_area
=
INT21_GetCurrentDTA
(
context
);
bytes_written
=
_lwrite
((
HFILE
)
handle
,
disk_transfer_area
,
fcb
->
logical_record_size
);
bytes_written
=
_lwrite
((
HFILE
)
handle
,
(
LPCSTR
)
disk_transfer_area
,
fcb
->
logical_record_size
);
if
(
bytes_written
!=
fcb
->
logical_record_size
)
{
TRACE
(
"_lwrite(%d, %p, %d) failed with %d
\n
"
,
fcb
->
file_number
,
disk_transfer_area
,
fcb
->
logical_record_size
,
bytes_written
);
...
...
@@ -1633,7 +1633,7 @@ static void INT21_WriteRandomRecordToFCB( CONTEXT86 *context )
AL_result
=
0x01
;
/* disk full */
}
else
{
disk_transfer_area
=
INT21_GetCurrentDTA
(
context
);
bytes_written
=
_lwrite
((
HFILE
)
handle
,
disk_transfer_area
,
fcb
->
logical_record_size
);
bytes_written
=
_lwrite
((
HFILE
)
handle
,
(
LPCSTR
)
disk_transfer_area
,
fcb
->
logical_record_size
);
if
(
bytes_written
!=
fcb
->
logical_record_size
)
{
TRACE
(
"_lwrite(%d, %p, %d) failed with %d
\n
"
,
fcb
->
file_number
,
disk_transfer_area
,
fcb
->
logical_record_size
,
bytes_written
);
...
...
@@ -1806,7 +1806,7 @@ static void INT21_RandomBlockWriteToFCB( CONTEXT86 *context )
disk_transfer_area
=
INT21_GetCurrentDTA
(
context
);
records_requested
=
CX_reg
(
context
);
bytes_requested
=
(
UINT
)
records_requested
*
fcb
->
logical_record_size
;
bytes_written
=
_lwrite
((
HFILE
)
handle
,
disk_transfer_area
,
bytes_requested
);
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
"
,
fcb
->
file_number
,
disk_transfer_area
,
bytes_requested
,
bytes_written
);
...
...
@@ -2591,8 +2591,8 @@ static void INT21_Ioctl_Block( CONTEXT86 *context )
GetVolumeInformationW
(
drivespec
,
label
,
12
,
&
serial
,
NULL
,
NULL
,
fsname
,
9
);
*
(
WORD
*
)
dataptr
=
0
;
memcpy
(
dataptr
+
2
,
&
serial
,
4
);
WideCharToMultiByte
(
CP_OEMCP
,
0
,
label
,
11
,
dataptr
+
6
,
11
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_OEMCP
,
0
,
fsname
,
8
,
dataptr
+
17
,
8
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_OEMCP
,
0
,
label
,
11
,
(
LPSTR
)
dataptr
+
6
,
11
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_OEMCP
,
0
,
fsname
,
8
,
(
LPSTR
)
dataptr
+
17
,
8
,
NULL
,
NULL
);
}
break
;
...
...
@@ -3435,7 +3435,7 @@ static int INT21_GetDiskSerialNumber( CONTEXT86 *context )
*
(
WORD
*
)
dataptr
=
0
;
memcpy
(
dataptr
+
2
,
&
serial
,
sizeof
(
DWORD
));
WideCharToMultiByte
(
CP_OEMCP
,
0
,
label
,
11
,
dataptr
+
6
,
11
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_OEMCP
,
0
,
label
,
11
,
(
LPSTR
)
dataptr
+
6
,
11
,
NULL
,
NULL
);
memcpy
(
dataptr
+
17
,
"FAT16 "
,
8
);
return
1
;
}
...
...
@@ -4776,7 +4776,7 @@ void WINAPI DOSVM_Int21Handler( CONTEXT86 *context )
context
->
SegDs
,
DX_reg
(
context
),
BX_reg
(
context
),
CX_reg
(
context
)
);
{
BYTE
*
ptr
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Edx
);
char
*
ptr
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Edx
);
if
(
!
DOSVM_IsWin16
()
&&
(
BX_reg
(
context
)
==
1
||
BX_reg
(
context
)
==
2
))
...
...
@@ -4979,7 +4979,7 @@ void WINAPI DOSVM_Int21Handler( CONTEXT86 *context )
case
0x4b
:
/* "EXEC" - LOAD AND/OR EXECUTE PROGRAM */
{
BYTE
*
program
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Edx
);
char
*
program
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Edx
);
BYTE
*
paramblk
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegEs
,
context
->
Ebx
);
TRACE
(
"EXEC %s
\n
"
,
program
);
...
...
dlls/winmm/mci.c
View file @
d3dba4e5
...
...
@@ -68,10 +68,10 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mci
);
WINMM_MapType
(
*
pFnMciMapMsg16To32W
)
(
WORD
,
WORD
,
DWORD
,
DWORD
*
)
/* = NULL */
;
WINMM_MapType
(
*
pFnMciUnMapMsg16To32W
)(
WORD
,
WORD
,
DWORD
,
DWORD
)
/* = NULL */
;
WINMM_MapType
(
*
pFnMciMapMsg32WTo16
)
(
WORD
,
WORD
,
DWORD
,
DWORD
*
)
/* = NULL */
;
WINMM_MapType
(
*
pFnMciUnMapMsg32WTo16
)(
WORD
,
WORD
,
DWORD
,
DWORD
)
/* = NULL */
;
WINMM_MapType
(
*
pFnMciMapMsg16To32W
)
(
WORD
,
WORD
,
DWORD
,
DWORD
_PTR
*
)
=
NULL
;
WINMM_MapType
(
*
pFnMciUnMapMsg16To32W
)(
WORD
,
WORD
,
DWORD
,
DWORD
_PTR
)
=
NULL
;
WINMM_MapType
(
*
pFnMciMapMsg32WTo16
)
(
WORD
,
WORD
,
DWORD
,
DWORD
_PTR
*
)
=
NULL
;
WINMM_MapType
(
*
pFnMciUnMapMsg32WTo16
)(
WORD
,
WORD
,
DWORD
,
DWORD
_PTR
)
=
NULL
;
/* First MCI valid device ID (0 means error) */
#define MCI_MAGIC 0x0001
...
...
@@ -819,7 +819,7 @@ static BOOL MCI_UnLoadMciDriver(LPWINE_MCIDRIVER wmd)
/**************************************************************************
* MCI_OpenMciDriver [internal]
*/
static
BOOL
MCI_OpenMciDriver
(
LPWINE_MCIDRIVER
wmd
,
LPCWSTR
drvTyp
,
LPARAM
lp
)
static
BOOL
MCI_OpenMciDriver
(
LPWINE_MCIDRIVER
wmd
,
LPCWSTR
drvTyp
,
DWORD_PTR
lp
)
{
WCHAR
libName
[
128
];
...
...
@@ -890,7 +890,7 @@ static DWORD MCI_LoadMciDriver(LPCWSTR _strDevTyp, LPWINE_MCIDRIVER* lpwmd)
modp
.
lpstrParams
=
NULL
;
if
(
!
MCI_OpenMciDriver
(
wmd
,
strDevTyp
,
(
LPARAM
)
&
modp
))
{
if
(
!
MCI_OpenMciDriver
(
wmd
,
strDevTyp
,
(
DWORD_PTR
)
&
modp
))
{
/* silence warning if all is used... some bogus program use commands like
* 'open all'...
*/
...
...
dlls/winmm/message16.c
View file @
d3dba4e5
...
...
@@ -2522,7 +2522,7 @@ static WINMM_MapType MCI_UnMapMsg32ATo16(WORD uDevType, WORD wMsg, DWORD dwFlag
/**************************************************************************
* MCI_MapMsg16To32W [internal]
*/
static
WINMM_MapType
MCI_MapMsg16To32W
(
WORD
uDevType
,
WORD
wMsg
,
DWORD
dwFlags
,
DWORD
*
lParam
)
static
WINMM_MapType
MCI_MapMsg16To32W
(
WORD
uDevType
,
WORD
wMsg
,
DWORD
dwFlags
,
DWORD
_PTR
*
lParam
)
{
if
(
*
lParam
==
0
)
return
WINMM_MAP_OK
;
...
...
@@ -2716,7 +2716,7 @@ static WINMM_MapType MCI_MapMsg16To32W(WORD uDevType, WORD wMsg, DWORD dwFlags,
/**************************************************************************
* MCI_UnMapMsg16To32W [internal]
*/
static
WINMM_MapType
MCI_UnMapMsg16To32W
(
WORD
uDevType
,
WORD
wMsg
,
DWORD
dwFlags
,
DWORD
lParam
)
static
WINMM_MapType
MCI_UnMapMsg16To32W
(
WORD
uDevType
,
WORD
wMsg
,
DWORD
dwFlags
,
DWORD
_PTR
lParam
)
{
switch
(
wMsg
)
{
/* case MCI_CAPTURE */
...
...
@@ -3007,7 +3007,7 @@ static WINMM_MapType MCI_MsgMapper32WTo16_Destroy(void* ptr, int size16, DWORD m
*
* Map a 32W bit MCI message to a 16 bit MCI message.
*/
static
WINMM_MapType
MCI_MapMsg32WTo16
(
WORD
uDevType
,
WORD
wMsg
,
DWORD
dwFlags
,
DWORD
*
lParam
)
static
WINMM_MapType
MCI_MapMsg32WTo16
(
WORD
uDevType
,
WORD
wMsg
,
DWORD
dwFlags
,
DWORD
_PTR
*
lParam
)
{
int
size
;
BOOLEAN
keep
=
FALSE
;
...
...
@@ -3318,7 +3318,7 @@ static WINMM_MapType MCI_MapMsg32WTo16(WORD uDevType, WORD wMsg, DWORD dwFlags,
/**************************************************************************
* MCI_UnMapMsg32WTo16 [internal]
*/
static
WINMM_MapType
MCI_UnMapMsg32WTo16
(
WORD
uDevType
,
WORD
wMsg
,
DWORD
dwFlags
,
DWORD
lParam
)
static
WINMM_MapType
MCI_UnMapMsg32WTo16
(
WORD
uDevType
,
WORD
wMsg
,
DWORD
dwFlags
,
DWORD
_PTR
lParam
)
{
int
size
=
0
;
BOOLEAN
kept
=
FALSE
;
/* there is no need to compute size when kept is FALSE */
...
...
dlls/winmm/winemm.h
View file @
d3dba4e5
...
...
@@ -300,10 +300,10 @@ extern WINE_MMTHREAD* (*pFnGetMMThread16)(UINT16);
extern
LPWINE_DRIVER
(
*
pFnOpenDriver16
)(
LPCWSTR
,
LPCWSTR
,
LPARAM
);
extern
LRESULT
(
*
pFnCloseDriver16
)(
UINT16
,
LPARAM
,
LPARAM
);
extern
LRESULT
(
*
pFnSendMessage16
)(
UINT16
,
UINT
,
LPARAM
,
LPARAM
);
extern
WINMM_MapType
(
*
pFnMciMapMsg16To32W
)(
WORD
,
WORD
,
DWORD
,
DWORD
*
);
extern
WINMM_MapType
(
*
pFnMciUnMapMsg16To32W
)(
WORD
,
WORD
,
DWORD
,
DWORD
);
extern
WINMM_MapType
(
*
pFnMciMapMsg32WTo16
)(
WORD
,
WORD
,
DWORD
,
DWORD
*
);
extern
WINMM_MapType
(
*
pFnMciUnMapMsg32WTo16
)(
WORD
,
WORD
,
DWORD
,
DWORD
);
extern
WINMM_MapType
(
*
pFnMciMapMsg16To32W
)(
WORD
,
WORD
,
DWORD
,
DWORD
_PTR
*
);
extern
WINMM_MapType
(
*
pFnMciUnMapMsg16To32W
)(
WORD
,
WORD
,
DWORD
,
DWORD
_PTR
);
extern
WINMM_MapType
(
*
pFnMciMapMsg32WTo16
)(
WORD
,
WORD
,
DWORD
,
DWORD
_PTR
*
);
extern
WINMM_MapType
(
*
pFnMciUnMapMsg32WTo16
)(
WORD
,
WORD
,
DWORD
,
DWORD
_PTR
);
extern
LRESULT
(
*
pFnCallMMDrvFunc16
)(
DWORD
/* in fact FARPROC16 */
,
WORD
,
WORD
,
LONG
,
LONG
,
LONG
);
extern
unsigned
(
*
pFnLoadMMDrvFunc16
)(
LPCSTR
,
LPWINE_DRIVER
,
LPWINE_MM_DRIVER
);
extern
LRESULT
(
*
pFnMmioCallback16
)(
DWORD
,
LPMMIOINFO
,
UINT
,
LPARAM
,
LPARAM
);
...
...
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