|
|
@ -187,6 +187,7 @@ hsBool plSecureStream::Open(const wchar* name, const wchar* mode) |
|
|
|
#elif HS_BUILD_FOR_UNIX |
|
|
|
#elif HS_BUILD_FOR_UNIX |
|
|
|
const char* cname = hsWStringToString(name); |
|
|
|
const char* cname = hsWStringToString(name); |
|
|
|
fRef = fopen(cname, "rb"); |
|
|
|
fRef = fopen(cname, "rb"); |
|
|
|
|
|
|
|
delete[] cname; |
|
|
|
|
|
|
|
|
|
|
|
fPosition = 0; |
|
|
|
fPosition = 0; |
|
|
|
|
|
|
|
|
|
|
@ -632,6 +633,7 @@ bool plSecureStream::IsSecureFile(const wchar* fileName) |
|
|
|
#elif HS_BUILD_FOR_UNIX |
|
|
|
#elif HS_BUILD_FOR_UNIX |
|
|
|
const char* cfile = hsWStringToString(fileName); |
|
|
|
const char* cfile = hsWStringToString(fileName); |
|
|
|
fp = fopen(cfile, "rb"); |
|
|
|
fp = fopen(cfile, "rb"); |
|
|
|
|
|
|
|
delete[] cfile; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
if (fp == INVALID_HANDLE_VALUE) |
|
|
|
if (fp == INVALID_HANDLE_VALUE) |
|
|
|