Alexandre Julliard : advapi32/tests: GetTokenInformation apparently needs a dword-aligned buffer.
Alexandre Julliard
julliard at winehq.org
Wed Mar 4 09:00:52 CST 2009
Module: wine
Branch: master
Commit: ec1d6aa617bc44f09c8a988712c7f9f8935634ef
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ec1d6aa617bc44f09c8a988712c7f9f8935634ef
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Mar 4 11:47:20 2009 +0100
advapi32/tests: GetTokenInformation apparently needs a dword-aligned buffer.
---
dlls/advapi32/tests/security.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index 1d5a769..e82167a 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -1196,7 +1196,7 @@ static void test_token_attr(void)
ok(ret, "OpenProcessToken failed with error %d\n", GetLastError());
if (ret)
{
- BYTE buf[1024];
+ DWORD buf[256]; /* GetTokenInformation wants a dword-aligned buffer */
Size = sizeof(buf);
ret = GetTokenInformation(Token, TokenUser,(void*)buf, Size, &Size);
ok(ret, "GetTokenInformation failed with error %d\n", GetLastError());
More information about the wine-cvs
mailing list