updated for version 7.3.1210
Problem: 'backupcopy' default on MS-Windows is wrong when 'encoding' equals
the current codepage.
Solution: Change the #else block. (Ken Takata)
diff --git a/src/os_win32.c b/src/os_win32.c
index fd7e57e..123b892 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -2789,14 +2789,16 @@
reparseTag = findDataW.dwReserved0;
}
}
-#else
- hFind = FindFirstFile(fname, &findDataA);
- if (hFind != INVALID_HANDLE_VALUE)
- {
- fileFlags = findDataA.dwFileAttributes;
- reparseTag = findDataA.dwReserved0;
- }
+ else
#endif
+ {
+ hFind = FindFirstFile(fname, &findDataA);
+ if (hFind != INVALID_HANDLE_VALUE)
+ {
+ fileFlags = findDataA.dwFileAttributes;
+ reparseTag = findDataA.dwReserved0;
+ }
+ }
if (hFind != INVALID_HANDLE_VALUE)
FindClose(hFind);