mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-10 21:33:38 +00:00
removed debug line
This commit is contained in:
@@ -354,11 +354,7 @@ FILE* ILibSimpleDataStore_OpenFileEx2(char* filePath, int forceTruncateIfNonZero
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
HANDLE h = CreateFile(filePath, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
HANDLE h = CreateFile(filePath, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||||
if (h == INVALID_HANDLE_VALUE)
|
if (h == INVALID_HANDLE_VALUE) { return(NULL); }
|
||||||
{
|
|
||||||
int err = GetLastError();
|
|
||||||
return(NULL);
|
|
||||||
}
|
|
||||||
int fd = _open_osfhandle((intptr_t)h, _O_RDONLY);
|
int fd = _open_osfhandle((intptr_t)h, _O_RDONLY);
|
||||||
if (fd == -1) { CloseHandle(h); return(NULL); }
|
if (fd == -1) { CloseHandle(h); return(NULL); }
|
||||||
f = _fdopen(fd, "rb");
|
f = _fdopen(fd, "rb");
|
||||||
|
|||||||
Reference in New Issue
Block a user