mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-08 06:32:59 +00:00
I FOUND I FOUND IT OMG
This commit is contained in:
parent
69a8ce84b9
commit
b763a92f8e
|
|
@ -794,6 +794,15 @@ BOOL ConsoleSaveFileSplit::zeroFile(FileEntry *file, DWORD nNumberOfBytesToWrite
|
|||
return 0;
|
||||
}
|
||||
|
||||
// 4jcraft added: memset(NULL + 0, 0, 0); was called
|
||||
// no bytes need to be written, hence there you go
|
||||
if(nNumberOfBytesToWrite == 0) {
|
||||
if(lpNumberOfBytesWritten) {
|
||||
*lpNumberOfBytesWritten = 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
LockSaveAccess();
|
||||
|
||||
if( file->isRegionFile() )
|
||||
|
|
|
|||
Loading…
Reference in a new issue