[NCFTP] Check _DEBUG with #ifdef, not #if (#1616)

This commit is contained in:
Serge Gautherie 2019-06-06 01:49:52 +02:00 committed by Hermès BÉLUSCA - MAÏTO
parent addfb61d8b
commit 96a4ab87d4

View file

@ -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) {