mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[WINMM] Fixed boundary condition in mmioOpen file name parsing
Wine commit: 4431c32c91206040d59d3eb82a971245594d1243 author: Alexander Puzankov <alxpnv@gmail.com> Sun, 5 Dec 2010 14:24:59 +0000 (17:24 +0300) committer: Alexandre Julliard <julliard@winehq.org> Sun, 5 Dec 2010 15:44:28 +0000 (16:44 +0100)
This commit is contained in:
parent
d27e2b0b23
commit
940bbd2e02
|
@ -385,13 +385,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 a new issue