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
f4ba76e1
Commit
f4ba76e1
authored
Sep 06, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Fix a test on win9x.
parent
e8b8856d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
mmio.c
dlls/winmm/tests/mmio.c
+16
-10
No files found.
dlls/winmm/tests/mmio.c
View file @
f4ba76e1
...
...
@@ -302,24 +302,24 @@ static void test_mmioOpen(char *fname)
memset
(
&
mmio
,
0
,
sizeof
(
mmio
));
mmio
.
fccIOProc
=
fname
?
FOURCC_DOS
:
FOURCC_MEM
;
mmio
.
cchBuffer
=
0
;
mmio
.
pchBuffer
=
buf
;
mmio
.
pchBuffer
=
NULL
;
hmmio
=
mmioOpen
(
fname
,
&
mmio
,
MMIO_READ
|
MMIO_ALLOCBUF
);
ok
(
hmmio
!=
0
,
"mmioOpen error %u
\n
"
,
mmio
.
wErrorRet
);
memset
(
&
mmio
,
0
,
sizeof
(
mmio
));
ret
=
mmioGetInfo
(
hmmio
,
&
mmio
,
0
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioGetInfo error %u
\n
"
,
ret
);
ok
(
mmio
.
dwFlags
==
MMIO_READ
,
"expected MMIO_READ
, got %x
\n
"
,
mmio
.
dwFlags
);
ok
(
mmio
.
dwFlags
==
(
MMIO_READ
|
MMIO_ALLOCBUF
),
"expected MMIO_READ|MMIO_ALLOCBUF
, got %x
\n
"
,
mmio
.
dwFlags
);
ok
(
mmio
.
wErrorRet
==
MMSYSERR_NOERROR
,
"expected MMSYSERR_NOERROR, got %u
\n
"
,
mmio
.
wErrorRet
);
ok
(
mmio
.
fccIOProc
==
(
fname
?
FOURCC_DOS
:
FOURCC_MEM
),
"got %4.4s
\n
"
,
(
LPCSTR
)
&
mmio
.
fccIOProc
);
ok
(
mmio
.
cchBuffer
==
MMIO_DEFAULTBUFFER
,
"expected MMIO_DEFAULTBUFFER, got %u
\n
"
,
mmio
.
cchBuffer
);
ok
(
mmio
.
pchBuffer
==
buf
,
"expected %p, got %p
\n
"
,
buf
,
mmio
.
pchBuffer
);
ok
(
mmio
.
pchBuffer
!=
NULL
,
"expected not NULL
\n
"
);
mmioClose
(
hmmio
,
0
);
memset
(
&
mmio
,
0
,
sizeof
(
mmio
));
mmio
.
fccIOProc
=
fname
?
FOURCC_DOS
:
FOURCC_MEM
;
mmio
.
cchBuffer
=
0
;
mmio
.
cchBuffer
=
256
;
mmio
.
pchBuffer
=
NULL
;
hmmio
=
mmioOpen
(
fname
,
&
mmio
,
MMIO_READ
|
MMIO_ALLOCBUF
);
ok
(
hmmio
!=
0
,
"mmioOpen error %u
\n
"
,
mmio
.
wErrorRet
);
...
...
@@ -330,26 +330,32 @@ static void test_mmioOpen(char *fname)
ok
(
mmio
.
dwFlags
==
(
MMIO_READ
|
MMIO_ALLOCBUF
),
"expected MMIO_READ|MMIO_ALLOCBUF, got %x
\n
"
,
mmio
.
dwFlags
);
ok
(
mmio
.
wErrorRet
==
MMSYSERR_NOERROR
,
"expected MMSYSERR_NOERROR, got %u
\n
"
,
mmio
.
wErrorRet
);
ok
(
mmio
.
fccIOProc
==
(
fname
?
FOURCC_DOS
:
FOURCC_MEM
),
"got %4.4s
\n
"
,
(
LPCSTR
)
&
mmio
.
fccIOProc
);
ok
(
mmio
.
cchBuffer
==
MMIO_DEFAULTBUFFER
,
"expected MMIO_DEFAULTBUFFER
, got %u
\n
"
,
mmio
.
cchBuffer
);
ok
(
mmio
.
cchBuffer
==
256
,
"expected 256
, got %u
\n
"
,
mmio
.
cchBuffer
);
ok
(
mmio
.
pchBuffer
!=
NULL
,
"expected not NULL
\n
"
);
mmioClose
(
hmmio
,
0
);
memset
(
&
mmio
,
0
,
sizeof
(
mmio
));
mmio
.
fccIOProc
=
fname
?
FOURCC_DOS
:
FOURCC_MEM
;
mmio
.
cchBuffer
=
256
;
mmio
.
pchBuffer
=
NULL
;
mmio
.
cchBuffer
=
0
;
mmio
.
pchBuffer
=
buf
;
hmmio
=
mmioOpen
(
fname
,
&
mmio
,
MMIO_READ
|
MMIO_ALLOCBUF
);
if
(
!
hmmio
&&
mmio
.
wErrorRet
==
ERROR_BAD_FORMAT
)
{
/* Seen on Win9x, WinMe but also XP-SP1 */
skip
(
"Some Windows versions don't like a 0 size and a given buffer
\n
"
);
return
;
}
ok
(
hmmio
!=
0
,
"mmioOpen error %u
\n
"
,
mmio
.
wErrorRet
);
memset
(
&
mmio
,
0
,
sizeof
(
mmio
));
ret
=
mmioGetInfo
(
hmmio
,
&
mmio
,
0
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioGetInfo error %u
\n
"
,
ret
);
ok
(
mmio
.
dwFlags
==
(
MMIO_READ
|
MMIO_ALLOCBUF
),
"expected MMIO_READ|MMIO_ALLOCBUF
, got %x
\n
"
,
mmio
.
dwFlags
);
ok
(
mmio
.
dwFlags
==
MMIO_READ
,
"expected MMIO_READ
, got %x
\n
"
,
mmio
.
dwFlags
);
ok
(
mmio
.
wErrorRet
==
MMSYSERR_NOERROR
,
"expected MMSYSERR_NOERROR, got %u
\n
"
,
mmio
.
wErrorRet
);
ok
(
mmio
.
fccIOProc
==
(
fname
?
FOURCC_DOS
:
FOURCC_MEM
),
"got %4.4s
\n
"
,
(
LPCSTR
)
&
mmio
.
fccIOProc
);
ok
(
mmio
.
cchBuffer
==
256
,
"expected 256
, got %u
\n
"
,
mmio
.
cchBuffer
);
ok
(
mmio
.
pchBuffer
!=
NULL
,
"expected not NULL
\n
"
);
ok
(
mmio
.
cchBuffer
==
MMIO_DEFAULTBUFFER
,
"expected MMIO_DEFAULTBUFFER
, got %u
\n
"
,
mmio
.
cchBuffer
);
ok
(
mmio
.
pchBuffer
==
buf
,
"expected %p, got %p
\n
"
,
buf
,
mmio
.
pchBuffer
);
mmioClose
(
hmmio
,
0
);
}
...
...
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