winmm: Sign-compare warning fix.

This commit is contained in:
Andrew Talbot 2008-12-12 20:22:03 +00:00 committed by Alexandre Julliard
parent d4b72f3e10
commit adb5eb9c11
1 changed files with 3 additions and 2 deletions

View File

@ -737,7 +737,7 @@ static BOOL MMDRV_ExitPerType(LPWINE_MM_DRIVER lpDrv, UINT type)
*/ */
void MMDRV_Exit(void) void MMDRV_Exit(void)
{ {
int i; unsigned int i;
TRACE("()\n"); TRACE("()\n");
for (i = 0; i < sizeof(MM_MLDrvs) / sizeof(MM_MLDrvs[0]); i++) for (i = 0; i < sizeof(MM_MLDrvs) / sizeof(MM_MLDrvs[0]); i++)
@ -753,7 +753,8 @@ void MMDRV_Exit(void)
} }
/* unload driver, in reverse order of loading */ /* unload driver, in reverse order of loading */
for (i = sizeof(MMDrvs) / sizeof(MMDrvs[0]) - 1; i >= 0; i--) i = sizeof(MMDrvs) / sizeof(MMDrvs[0]);
while (i-- > 0)
{ {
MMDRV_ExitPerType(&MMDrvs[i], MMDRV_AUX); MMDRV_ExitPerType(&MMDrvs[i], MMDRV_AUX);
MMDRV_ExitPerType(&MMDrvs[i], MMDRV_MIXER); MMDRV_ExitPerType(&MMDrvs[i], MMDRV_MIXER);