* details.
*
* You should have received a copy of the GNU Lesser General Public License
- * along with this file; if not, see http://www.gnu.org/licenses/.
+ * along with this file; if not, see https://www.gnu.org/licenses/.
*/
-#ifdef __WIN32__
+#ifdef _WIN32
#ifdef HAVE_CONFIG_H
# include "config.h"
return 0;
}
-/* Try to attach an instance of the Windows Overlay File System Filter Driver to
+/* Try to attach an instance of the Windows Overlay Filesystem filter driver to
* the specified drive (such as C:) */
bool
win32_try_to_attach_wof(const wchar_t *drive)
size_t buflen = ARRAY_LEN(_buf);
size_t ret;
size_t n;
+ va_list va2;
retry:
- n = vsnwprintf(buf, buflen, format, va);
+ va_copy(va2, va);
+ n = vsnwprintf(buf, buflen, format, va2);
+ va_end(va2);
if (n >= buflen)
goto realloc;
return status;
}
-#endif /* __WIN32__ */
+#endif /* _WIN32 */