Commit adb5eb9c authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

winmm: Sign-compare warning fix.

parent d4b72f3e
......@@ -737,7 +737,7 @@ static BOOL MMDRV_ExitPerType(LPWINE_MM_DRIVER lpDrv, UINT type)
*/
void MMDRV_Exit(void)
{
int i;
unsigned int i;
TRACE("()\n");
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 */
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_MIXER);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment