mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-15 18:27:29 +00:00
Screenshot: reset file pointer to the end. (PR #1016)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
Reference in New Issue
Block a user