mirror of
https://github.com/reactos/wine.git
synced 2025-02-12 23:58:56 +00:00
advapi32/tests: GetTokenInformation apparently needs a dword-aligned buffer.
This commit is contained in:
parent
53239a9aa2
commit
ec1d6aa617
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user