advapi32/tests: Skip tests for ACL file info if ACL info not stored (try 2)

Alexandre Julliard julliard at winehq.org
Wed Nov 18 04:17:54 CST 2009


Austin Lund <austin.lund at gmail.com> writes:

> @@ -3143,6 +3146,13 @@ static void test_GetSecurityInfo(void)
>          return;
>      }
>  
> +    if (GetVolumePathName(myARGV[0], volumepathname, 50) &&
> +        GetVolumeInformation(volumepathname, NULL, 0, NULL, NULL, &filesystemflags, NULL, 0) &&
> +        (filesystemflags & FILE_PERSISTENT_ACLS))
> +    {
> +        testacl = TRUE;
> +    }

Testing file system flags is not a good idea, that won't work on
Wine. It's better to test the results of the actual call.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list