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
d1e9a093
Commit
d1e9a093
authored
Sep 29, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Add support for the MCI_INTEGER64 type.
Based on a patch by Octavian Voicu.
parent
41a5b37b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
mci.c
dlls/winmm/mci.c
+42
-0
No files found.
dlls/winmm/mci.c
View file @
d1e9a093
...
...
@@ -1201,6 +1201,43 @@ static DWORD MCI_HandleReturnValues(DWORD dwRet, LPWINE_MCIDRIVER wmd, DWORD ret
}
break
;
}
#ifdef MCI_INTEGER64
case
MCI_INTEGER64
:
{
static
const
WCHAR
fmt_ld
[]
=
{
'%'
,
'l'
,
'd'
,
0
};
DWORD_PTR
data
=
*
(
DWORD_PTR
*
)(
params
+
1
);
switch
(
dwRet
&
0xFFFF0000ul
)
{
case
0
:
case
MCI_INTEGER_RETURNED
:
snprintfW
(
lpstrRet
,
uRetLen
,
fmt_ld
,
data
);
break
;
case
MCI_RESOURCE_RETURNED
:
/* return string which ID is HIWORD(data),
* string is loaded from mmsystem.dll */
LoadStringW
(
hWinMM32Instance
,
HIWORD
(
data
),
lpstrRet
,
uRetLen
);
break
;
case
MCI_RESOURCE_RETURNED
|
MCI_RESOURCE_DRIVER
:
/* return string which ID is HIWORD(data),
* string is loaded from driver */
/* FIXME: this is wrong for a 16 bit handle */
LoadStringW
(
GetDriverModuleHandle
(
wmd
->
hDriver
),
HIWORD
(
data
),
lpstrRet
,
uRetLen
);
break
;
case
MCI_COLONIZED3_RETURN
:
snprintfW
(
lpstrRet
,
uRetLen
,
wszCol3
,
LOBYTE
(
LOWORD
(
data
)),
HIBYTE
(
LOWORD
(
data
)),
LOBYTE
(
HIWORD
(
data
)));
break
;
case
MCI_COLONIZED4_RETURN
:
snprintfW
(
lpstrRet
,
uRetLen
,
wszCol4
,
LOBYTE
(
LOWORD
(
data
)),
HIBYTE
(
LOWORD
(
data
)),
LOBYTE
(
HIWORD
(
data
)),
HIBYTE
(
HIWORD
(
data
)));
break
;
default:
ERR
(
"Ooops (%04X)
\n
"
,
HIWORD
(
dwRet
));
}
break
;
}
#endif
case
MCI_STRING
:
switch
(
dwRet
&
0xFFFF0000ul
)
{
case
0
:
...
...
@@ -1421,6 +1458,11 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
case
MCI_RECT
:
offset
+=
4
*
sizeof
(
DWORD
);
break
;
#ifdef MCI_INTEGER64
case
MCI_INTEGER64
:
offset
+=
sizeof
(
DWORD_PTR
);
break
;
#endif
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