tst: passthrough-fuse: ensure WinFsp DLL loaded

This commit is contained in:
Bill Zissimopoulos 2022-04-12 23:26:18 +01:00
parent facbc2c1b5
commit eaa0d7d7d2
2 changed files with 4 additions and 3 deletions

View File

@ -402,6 +402,10 @@ static void usage(void)
int main(int argc, char *argv[])
{
#if defined(_WIN64) || defined(_WIN32)
WinFspLoad();
#endif
PTFS ptfs = { 0 };
if (3 <= argc && '-' != argv[argc - 2][0] && '-' != argv[argc - 1][0])

View File

@ -81,8 +81,5 @@ struct dirent *readdir(DIR *dirp);
int closedir(DIR *dirp);
long WinFspLoad(void);
#undef fuse_main
#define fuse_main(argc, argv, ops, data)\
(WinFspLoad(), fuse_main_real(argc, argv, ops, sizeof *(ops), data))
#endif