https://git.reactos.org/?p=reactos.git;a=commitdiff;h=96a4ab87d43e297acd967…
commit 96a4ab87d43e297acd9671f8f6a6500500e431b3
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Thu Jun 6 01:49:52 2019 +0200
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Jun 6 01:49:52 2019 +0200
[NCFTP] Check _DEBUG with #ifdef, not #if (#1616)
---
modules/rosapps/applications/net/ncftp/libncftp/glob.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/rosapps/applications/net/ncftp/libncftp/glob.c
b/modules/rosapps/applications/net/ncftp/libncftp/glob.c
index 152d3c42ec9..2e25766356e 100644
--- a/modules/rosapps/applications/net/ncftp/libncftp/glob.c
+++ b/modules/rosapps/applications/net/ncftp/libncftp/glob.c
@@ -1157,9 +1157,15 @@ Traverse(FTPCIPtr cip, char *fullpath, struct Stat *st, char
*relpath, FileInfoL
}
next:
+#ifndef __REACTOS__
#if _DEBUG
memset(&ffd, 0, sizeof(ffd));
#endif
+#else // __REACTOS__
+#ifdef _DEBUG
+ memset(&ffd, 0, sizeof(ffd));
+#endif
+#endif // __REACTOS__
if (!FindNextFile(searchHandle, &ffd)) {
dwErr = GetLastError();
if (dwErr != ERROR_NO_MORE_FILES) {