winmm: Fixed boundary condition in mmioOpen file name parsing.
This commit is contained in:
parent
e75635a738
commit
4431c32c91
|
@ -399,13 +399,13 @@ static FOURCC MMIO_ParseExtA(LPCSTR szFileName)
|
|||
} else {
|
||||
/* Find the first '.' before '+' */
|
||||
extStart = extEnd - 1;
|
||||
while (*extStart != '.') {
|
||||
if (extStart == szFileName) {
|
||||
ERR("No extension in szFileName: %s\n", debugstr_a(szFileName));
|
||||
return ret;
|
||||
}
|
||||
while (extStart >= szFileName && *extStart != '.') {
|
||||
extStart--;
|
||||
}
|
||||
if (extStart < szFileName) {
|
||||
ERR("No extension in szFileName: %s\n", debugstr_a(szFileName));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
if (extEnd - extStart - 1 > 4)
|
||||
|
|
Loading…
Reference in New Issue