blob: f6608a62d6cbda8d25a14b0536abd96cbcc71e19 [file] [log] [blame]
diff --git a/src/vrcommon/pathtools_public.cpp b/src/vrcommon/pathtools_public.cpp
index 7f7c7e8..de7a72a 100644
--- a/src/vrcommon/pathtools_public.cpp
+++ b/src/vrcommon/pathtools_public.cpp
@@ -655,7 +655,7 @@ bool Path_WriteBinaryFile(const std::string &strFilename, unsigned char *pData,
fclose(f);
}
- return written = nSize ? true : false;
+ return written == nSize ? true : false;
}
std::string Path_ReadTextFile( const std::string &strFilename )