Paul Vriens : secur32/tests: Document some crashes on Windows.
Alexandre Julliard
julliard at winehq.org
Thu Apr 9 11:13:51 CDT 2009
Module: wine
Branch: master
Commit: 825354afe603cf73d28009619d750724ad277a0c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=825354afe603cf73d28009619d750724ad277a0c
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Thu Apr 9 14:44:23 2009 +0200
secur32/tests: Document some crashes on Windows.
---
dlls/secur32/tests/secur32.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/dlls/secur32/tests/secur32.c b/dlls/secur32/tests/secur32.c
index 6a4ae05..7e969bd 100644
--- a/dlls/secur32/tests/secur32.c
+++ b/dlls/secur32/tests/secur32.c
@@ -118,10 +118,20 @@ static void testGetUserNameExA(void)
formats[i], GetLastError());
}
+ if (0) /* Crashes on Windows */
+ rc = pGetUserNameExA(NameSamCompatible, NULL, NULL);
+
size = 0;
rc = pGetUserNameExA(NameSamCompatible, NULL, &size);
ok(! rc && GetLastError() == ERROR_MORE_DATA, "Expected fail with ERROR_MORE_DATA, got %d with %u\n", rc, GetLastError());
ok(size != 0, "Expected size to be set to required size\n");
+
+ if (0) /* Crashes on Windows with big enough size */
+ {
+ /* Returned size is already big enough */
+ rc = pGetUserNameExA(NameSamCompatible, NULL, &size);
+ }
+
size = 0;
rc = pGetUserNameExA(NameSamCompatible, name, &size);
ok(! rc && GetLastError() == ERROR_MORE_DATA, "Expected fail with ERROR_MORE_DATA, got %d with %u\n", rc, GetLastError());
@@ -156,10 +166,20 @@ static void testGetUserNameExW(void)
formats[i], GetLastError());
}
+ if (0) /* Crashes on Windows */
+ rc = pGetUserNameExW(NameSamCompatible, NULL, NULL);
+
size = 0;
rc = pGetUserNameExW(NameSamCompatible, NULL, &size);
ok(! rc && GetLastError() == ERROR_MORE_DATA, "Expected fail with ERROR_MORE_DATA, got %d with %u\n", rc, GetLastError());
ok(size != 0, "Expected size to be set to required size\n");
+
+ if (0) /* Crashes on Windows with big enough size */
+ {
+ /* Returned size is already big enough */
+ rc = pGetUserNameExW(NameSamCompatible, NULL, &size);
+ }
+
size = 0;
rc = pGetUserNameExW(NameSamCompatible, nameW, &size);
ok(! rc && GetLastError() == ERROR_MORE_DATA, "Expected fail with ERROR_MORE_DATA, got %d with %u\n", rc, GetLastError());
More information about the wine-cvs
mailing list