diff --git a/dlls/kernel32/tests/file.c b/dlls/kernel32/tests/file.c index 65ff18cbc33..eff6ad1477c 100644 --- a/dlls/kernel32/tests/file.c +++ b/dlls/kernel32/tests/file.c @@ -3504,7 +3504,8 @@ static void test_SetFileValidData(void) if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &token) || !LookupPrivilegeValue(NULL, SE_MANAGE_VOLUME_NAME, &privs.Privileges[0].Luid) || - !AdjustTokenPrivileges(token, FALSE, &privs, sizeof(privs), NULL, NULL)) + !AdjustTokenPrivileges(token, FALSE, &privs, sizeof(privs), NULL, NULL) || + GetLastError() == ERROR_NOT_ALL_ASSIGNED) { win_skip("cannot enable SE_MANAGE_VOLUME_NAME privilege\n"); CloseHandle(token);