winmm/tests: Avoid and ARRAY_SIZE-like macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fc0b157caa
commit
b400d4326d
|
@ -398,7 +398,7 @@ static void wave_in_test_device(UINT_PTR device)
|
|||
|
||||
HeapFree(GetProcessHeap(), 0, nameA);
|
||||
|
||||
for (f=0;f<NB_WIN_FORMATS;f++) {
|
||||
for (f = 0; f < ARRAY_SIZE(win_formats); f++) {
|
||||
format.wFormatTag=WAVE_FORMAT_PCM;
|
||||
format.nChannels=win_formats[f][3];
|
||||
format.wBitsPerSample=win_formats[f][2];
|
||||
|
|
|
@ -1041,7 +1041,7 @@ static void wave_out_test_device(UINT_PTR device)
|
|||
CALLBACK_EVENT,&capsA,TRUE,FALSE,FALSE);
|
||||
}
|
||||
|
||||
for (f=0;f<NB_WIN_FORMATS;f++) {
|
||||
for (f = 0; f < ARRAY_SIZE(win_formats); f++) {
|
||||
format.wFormatTag=WAVE_FORMAT_PCM;
|
||||
format.nChannels=win_formats[f][3];
|
||||
format.wBitsPerSample=win_formats[f][2];
|
||||
|
|
|
@ -68,7 +68,6 @@ static const unsigned int win_formats[][4] = {
|
|||
{WAVE_FORMAT_96M16, 96000, 16, 1},
|
||||
{WAVE_FORMAT_96S16, 96000, 16, 2}
|
||||
};
|
||||
#define NB_WIN_FORMATS (sizeof(win_formats)/sizeof(*win_formats))
|
||||
|
||||
extern const char* dev_name(int);
|
||||
extern const char* wave_open_flags(DWORD);
|
||||
|
|
Loading…
Reference in New Issue