Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dc8d856c
Commit
dc8d856c
authored
Sep 22, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No longer checking for correct iData in code.
parent
526b3c92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
18 deletions
+13
-18
time.c
multimedia/time.c
+13
-18
No files found.
multimedia/time.c
View file @
dc8d856c
...
...
@@ -124,7 +124,7 @@ static LPWINE_MM_IDATA MULTIMEDIA_MMTimeStart(void)
{
LPWINE_MM_IDATA
iData
=
MULTIMEDIA_GetIData
();
if
(
!
iData
||
IsBadWritePtr
(
iData
,
sizeof
(
WINE_MM_IDATA
)))
{
if
(
IsBadWritePtr
(
iData
,
sizeof
(
WINE_MM_IDATA
)))
{
ERR
(
"iData is not correctly set, please report. Expect failure.
\n
"
);
return
0
;
}
...
...
@@ -149,18 +149,13 @@ static LPWINE_MM_IDATA MULTIMEDIA_MMTimeStart(void)
*/
MMRESULT
WINAPI
timeGetSystemTime
(
LPMMTIME
lpTime
,
UINT
wSize
)
{
LPWINE_MM_IDATA
iData
;
TRACE
(
"(%p, %u);
\n
"
,
lpTime
,
wSize
);
if
(
wSize
>=
sizeof
(
*
lpTime
))
{
iData
=
MULTIMEDIA_MMTimeStart
();
if
(
!
iData
)
return
MMSYSERR_NOMEM
;
lpTime
->
wType
=
TIME_MS
;
lpTime
->
u
.
ms
=
iData
->
mmSysTimeMS
;
lpTime
->
u
.
ms
=
MULTIMEDIA_MMTimeStart
()
->
mmSysTimeMS
;
TRACE
(
"=> %lu
\n
"
,
iData
->
mmSysTimeMS
);
TRACE
(
"=> %lu
\n
"
,
lpTime
->
u
.
ms
);
}
return
0
;
...
...
@@ -171,18 +166,13 @@ MMRESULT WINAPI timeGetSystemTime(LPMMTIME lpTime, UINT wSize)
*/
MMRESULT16
WINAPI
timeGetSystemTime16
(
LPMMTIME16
lpTime
,
UINT16
wSize
)
{
LPWINE_MM_IDATA
iData
;
TRACE
(
"(%p, %u);
\n
"
,
lpTime
,
wSize
);
if
(
wSize
>=
sizeof
(
*
lpTime
))
{
iData
=
MULTIMEDIA_MMTimeStart
();
if
(
!
iData
)
return
MMSYSERR_NOMEM
;
lpTime
->
wType
=
TIME_MS
;
lpTime
->
u
.
ms
=
iData
->
mmSysTimeMS
;
lpTime
->
u
.
ms
=
MULTIMEDIA_MMTimeStart
()
->
mmSysTimeMS
;
TRACE
(
"=> %lu
\n
"
,
iData
->
mmSysTimeMS
);
TRACE
(
"=> %lu
\n
"
,
lpTime
->
u
.
ms
);
}
return
0
;
...
...
@@ -210,9 +200,6 @@ static WORD timeSetEventInternal(UINT wDelay, UINT wResol,
iData
=
MULTIMEDIA_MMTimeStart
();
if
(
!
iData
)
return
0
;
lpNewTimer
->
uCurTime
=
wDelay
;
lpNewTimer
->
wDelay
=
wDelay
;
lpNewTimer
->
wResol
=
wResol
;
...
...
@@ -381,5 +368,13 @@ MMRESULT16 WINAPI timeEndPeriod16(UINT16 wPeriod)
*/
DWORD
WINAPI
timeGetTime
(
void
)
{
/* FIXME: releasing the win16 lock here is a temporary hack (I hope)
* that lets mciavi.drv run correctly
*/
if
(
_ConfirmWin16Lock
()
)
{
SYSLEVEL_ReleaseWin16Lock
();
SYSLEVEL_RestoreWin16Lock
();
}
return
MULTIMEDIA_MMTimeStart
()
->
mmSysTimeMS
;
}
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