https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f1de615b9cdb2e267b97f…
commit f1de615b9cdb2e267b97f7e55e8712bfba68bd26
Author: Atharva Kulkarni <atharvak1910(a)gmail.com>
AuthorDate: Tue Feb 21 00:53:37 2023 +0530
Commit: GitHub <noreply(a)github.com>
CommitDate: Mon Feb 20 20:23:37 2023 +0100
[MCIAVI32] Add ifdef guards to prevent regression (#5090)
as an addendum to (#5063) and CORE-18669
---
dll/win32/mciavi32/mmoutput.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dll/win32/mciavi32/mmoutput.c b/dll/win32/mciavi32/mmoutput.c
index ca060574e01..e34e9d668e7 100644
--- a/dll/win32/mciavi32/mmoutput.c
+++ b/dll/win32/mciavi32/mmoutput.c
@@ -399,11 +399,13 @@ BOOL MCIAVI_GetInfo(WINE_MCIAVI* wma)
mmioAscend(wma->hFile, &mmckInfo, 0);
}
+#ifdef __REACTOS__
/* Empty file */
if (alb.numVideoFrames == 0) {
WARN("NumVideoFrames: %u, Empty or possibly corrupt video file");
return FALSE;
}
+#endif
if (alb.numVideoFrames != wma->dwPlayableVideoFrames) {
WARN("AVI header says %d frames, we found %d video frames, reducing playable
frames\n",
@@ -620,10 +622,12 @@ double MCIAVI_PaintFrame(WINE_MCIAVI* wma, HDC hDC)
if (wma->dwCurrVideoFrame != wma->dwCachedFrame)
{
+#ifdef __REACTOS__
if (wma->dwCurrVideoFrame >= wma->dwPlayableVideoFrames) {
ERR("Invalid frame requested. Current : %u Total Playable %u\n",
wma->dwCurrVideoFrame, wma->dwPlayableVideoFrames);
return 0;
}
+#endif
if (!wma->lpVideoIndex[wma->dwCurrVideoFrame].dwOffset)
return 0;