From 825354afe603cf73d28009619d750724ad277a0c Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Thu, 9 Apr 2009 14:44:23 +0200 Subject: [PATCH] secur32/tests: Document some crashes on Windows. --- dlls/secur32/tests/secur32.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/dlls/secur32/tests/secur32.c b/dlls/secur32/tests/secur32.c index 6a4ae056bdd..7e969bdb341 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());