summaryrefslogtreecommitdiffstats
path: root/source/core/slang-io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-io.cpp')
-rw-r--r--source/core/slang-io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-io.cpp b/source/core/slang-io.cpp
index d8ef48ee3..f2be44f4f 100644
--- a/source/core/slang-io.cpp
+++ b/source/core/slang-io.cpp
@@ -682,7 +682,7 @@ namespace Slang
WIN32_FIND_DATAW fileData;
HANDLE findHandle = FindFirstFileW(searchPath.toWString(), &fileData);
- if (!findHandle)
+ if (findHandle == INVALID_HANDLE_VALUE)
{
return SLANG_E_NOT_FOUND;
}