>From 2490b2087c5cd081fd1de08a3aa4c25974f1aeb0 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Thu, 9 Apr 2009 14:44:23 +0200 Subject: [PATCH] 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()); -- 1.6.0.6