summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2021-08-28 11:34:54 +0700
committerPierre Joye <pierre.php@gmail.com>2021-08-28 11:34:54 +0700
commit60ac1286ee1ba96448802239b78c1f7e123a2792 (patch)
tree90a17e5577ecbc1e286a81ac20effe76dbaebb91 /tests
parent3c012078359ff9b959306040c3e6e4e5d8cbd26e (diff)
downloadlibgd-60ac1286ee1ba96448802239b78c1f7e123a2792.tar.gz
windows logic
Diffstat (limited to 'tests')
-rw-r--r--tests/gdtest/gdtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gdtest/gdtest.c b/tests/gdtest/gdtest.c
index 0ce9da9..4fa8f24 100644
--- a/tests/gdtest/gdtest.c
+++ b/tests/gdtest/gdtest.c
@@ -85,7 +85,7 @@ int gdTestIsDir(char *path) {
WIN32_FILE_ATTRIBUTE_DATA data;
if (!GetFileAttributesEx(path, GetFileExInfoStandard, &data)) {
- continue;
+ return 0;
}
if (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
return 0;