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
7026a3d1
Commit
7026a3d1
authored
Sep 03, 1999
by
Michael McCormack
Committed by
Alexandre Julliard
Sep 03, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed snprintf to wsnprintfA to remove unresolved external when
compiling on Solaris/Sun.
parent
06c4d0e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mci.c
multimedia/mci.c
+5
-5
No files found.
multimedia/mci.c
View file @
7026a3d1
...
...
@@ -708,7 +708,7 @@ static DWORD MCI_HandleReturnValues(LPWINE_MM_IDATA iData, DWORD dwRet, LPWINE_M
switch
(
dwRet
&
0xFFFF0000ul
)
{
case
0
:
case
MCI_INTEGER_RETURNED
:
snprintf
(
lpstrRet
,
uRetLen
,
"%d"
,
data
[
1
]);
wsnprintfA
(
lpstrRet
,
uRetLen
,
"%d"
,
data
[
1
]);
break
;
case
MCI_RESOURCE_RETURNED
:
/* return string which ID is HIWORD(data[1]),
...
...
@@ -722,12 +722,12 @@ static DWORD MCI_HandleReturnValues(LPWINE_MM_IDATA iData, DWORD dwRet, LPWINE_M
LoadStringA
(
wmd
->
hDrv
,
HIWORD
(
data
[
1
]),
lpstrRet
,
uRetLen
);
break
;
case
MCI_COLONIZED3_RETURN
:
snprintf
(
lpstrRet
,
uRetLen
,
"%d:%d:%d"
,
wsnprintfA
(
lpstrRet
,
uRetLen
,
"%d:%d:%d"
,
LOBYTE
(
LOWORD
(
data
[
1
])),
HIBYTE
(
LOWORD
(
data
[
1
])),
LOBYTE
(
HIWORD
(
data
[
1
])));
break
;
case
MCI_COLONIZED4_RETURN
:
snprintf
(
lpstrRet
,
uRetLen
,
"%d:%d:%d:%d"
,
wsnprintfA
(
lpstrRet
,
uRetLen
,
"%d:%d:%d:%d"
,
LOBYTE
(
LOWORD
(
data
[
1
])),
HIBYTE
(
LOWORD
(
data
[
1
])),
LOBYTE
(
HIWORD
(
data
[
1
])),
HIBYTE
(
HIWORD
(
data
[
1
])));
break
;
...
...
@@ -741,7 +741,7 @@ static DWORD MCI_HandleReturnValues(LPWINE_MM_IDATA iData, DWORD dwRet, LPWINE_M
break
;
case
MCI_INTEGER_RETURNED
:
data
[
1
]
=
*
(
LPDWORD
)
lpstrRet
;
snprintf
(
lpstrRet
,
uRetLen
,
"%d"
,
data
[
1
]);
wsnprintfA
(
lpstrRet
,
uRetLen
,
"%d"
,
data
[
1
]);
break
;
default:
WARN
(
"Oooch. MCI_STRING and HIWORD(dwRet)=%04x
\n
"
,
HIWORD
(
dwRet
));
...
...
@@ -751,7 +751,7 @@ static DWORD MCI_HandleReturnValues(LPWINE_MM_IDATA iData, DWORD dwRet, LPWINE_M
case
MCI_RECT
:
if
(
dwRet
&
0xFFFF0000ul
)
WARN
(
"Oooch. MCI_STRING and HIWORD(dwRet)=%04x
\n
"
,
HIWORD
(
dwRet
));
snprintf
(
lpstrRet
,
uRetLen
,
"%d %d %d %d"
,
wsnprintfA
(
lpstrRet
,
uRetLen
,
"%d %d %d %d"
,
data
[
1
],
data
[
2
],
data
[
3
],
data
[
4
]);
break
;
default:
ERR
(
"oops
\n
"
);
...
...
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