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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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