dev149 - crap
This commit is contained in:
parent
8e0a28f06e
commit
17f9eb0c16
2 changed files with 3 additions and 3 deletions
|
|
@ -56,7 +56,7 @@ bool deleteFile(const char* path) {
|
|||
|
||||
int fileExists(const char* path) {
|
||||
#ifdef _WIN32
|
||||
if (PathFileExistsW(utf8To16(path).c_str()) return 1;
|
||||
if (PathFileExistsW(utf8To16(path).c_str())) return 1;
|
||||
// which errors could PathFileExists possibly throw?
|
||||
switch (GetLastError()) {
|
||||
case ERROR_FILE_EXISTS:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue