Screenshot: reset file pointer to the end. (PR #1016)

This commit is contained in:
Andrea
2022-01-07 21:06:24 +00:00
committed by GitHub
parent aa4af5e9d5
commit 5fbd8339c1

View File

@@ -585,6 +585,7 @@ void Video::Video_MakeScreenShot(FILE *pFile, const VideoScreenShot_e ScreenShot
pBmp->nSizeFile = ftell(pFile); pBmp->nSizeFile = ftell(pFile);
rewind(pFile); rewind(pFile);
fwrite( pBmp, sizeof( WinBmpHeader_t ), 1, pFile ); fwrite( pBmp, sizeof( WinBmpHeader_t ), 1, pFile );
fseek(pFile, 0, SEEK_END);
} }
//=========================================================================== //===========================================================================