kernel32/tests: Fixed test for GetVolumeNameForVolumeMountPoint on directory
Austin Lund
austin.lund at gmail.com
Sat Nov 14 19:48:48 CST 2009
-------------- next part --------------
From 3c199d95bd29a93747500f009730c112341d28be Mon Sep 17 00:00:00 2001
From: Austin Lund <austin.lund at gmail.com>
Date: Sun, 15 Nov 2009 11:45:45 +1000
Subject: [PATCH] kernel32/tests: Fixed test for GetVolumeNameForVolumeMountPoint on directory
---
dlls/kernel32/tests/volume.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/tests/volume.c b/dlls/kernel32/tests/volume.c
index f569247..e8f250e 100644
--- a/dlls/kernel32/tests/volume.c
+++ b/dlls/kernel32/tests/volume.c
@@ -155,8 +155,11 @@ static void test_GetVolumeNameForVolumeMountPointA(void)
GetLastError());
/* Try on a arbitrary directory */
+ /* On FAT filesystems it seems that GetLastError() is set to
+ ERROR_INVALID_FUNCTION. */
ret = pGetVolumeNameForVolumeMountPointA(temp_path, volume, len);
- ok(ret == FALSE && GetLastError() == ERROR_NOT_A_REPARSE_POINT,
+ ok(ret == FALSE && (GetLastError() == ERROR_NOT_A_REPARSE_POINT ||
+ GetLastError() == ERROR_INVALID_FUNCTION),
"GetVolumeNameForVolumeMountPointA failed on %s, last=%d\n",
temp_path, GetLastError());
--
1.6.3.3
More information about the wine-patches
mailing list