include: Pack WAVEFORMAT structs.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
eed3bb6dfd
commit
d31d656b6f
|
@ -1139,6 +1139,18 @@ static void test_acmFormatSuggest(void)
|
|||
ok(rc == MMSYSERR_INVALPARAM, "failed with error 0x%x\n", rc);
|
||||
}
|
||||
|
||||
static void test_acmFormatTagDetails(void)
|
||||
{
|
||||
ACMFORMATTAGDETAILSW aftd = {0};
|
||||
MMRESULT rc;
|
||||
|
||||
aftd.cbStruct = sizeof(aftd);
|
||||
aftd.dwFormatTag = WAVE_FORMAT_MPEGLAYER3;
|
||||
rc = acmFormatTagDetailsW(NULL, &aftd, ACM_FORMATTAGDETAILSF_FORMATTAG);
|
||||
if (rc == MMSYSERR_NOERROR)
|
||||
ok(aftd.cbFormatSize == sizeof(MPEGLAYER3WAVEFORMAT), "got %d\n", aftd.cbFormatSize);
|
||||
}
|
||||
|
||||
static struct
|
||||
{
|
||||
struct
|
||||
|
@ -1306,6 +1318,7 @@ START_TEST(msacm)
|
|||
driver_tests();
|
||||
test_prepareheader();
|
||||
test_acmFormatSuggest();
|
||||
test_acmFormatTagDetails();
|
||||
/* Test acmDriverAdd in the end as it may conflict
|
||||
* with other tests due to codec lookup order */
|
||||
test_acmDriverAdd();
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#ifndef __WINE_MMREG_H
|
||||
#define __WINE_MMREG_H
|
||||
|
||||
#include <pshpack1.h>
|
||||
|
||||
/***********************************************************************
|
||||
* Defines/Enums
|
||||
*/
|
||||
|
@ -512,6 +514,8 @@ typedef struct tagEXBMINFOHEADER {
|
|||
|
||||
#endif
|
||||
|
||||
#include <poppack.h>
|
||||
|
||||
#endif /* __WINE_MMREG_H */
|
||||
|
||||
#else /* __WIDL__ */
|
||||
|
|
Loading…
Reference in New Issue