null
This commit is contained in:
parent
3466a55c41
commit
fe4260e8f0
@ -118,10 +118,12 @@ void * sus_fileFileToMemroy(sus_File file){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void sus_fileClose(sus_File file){
|
void sus_fileClose(sus_File file){
|
||||||
FlushViewOfFile(file->memroy, 0);
|
if(file->memroy == NULL){
|
||||||
UnmapViewOfFile(file->memroy);
|
FlushViewOfFile(file->memroy, 0);
|
||||||
CloseHandle(file->fileMapHandle);
|
UnmapViewOfFile(file->memroy);
|
||||||
CloseHandle(file->fileHandle);
|
CloseHandle(file->fileMapHandle);
|
||||||
|
CloseHandle(file->fileHandle);
|
||||||
|
}
|
||||||
sus_heapFree(file);
|
sus_heapFree(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user