mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Use L_cuserid instead of 64 and given lpnSize
This commit is contained in:
1 parent
3ab3408378
commit
e8cb7e24fe
2 files changed
+3
-3
No files matched your search
@@ -8,7 +8,7 @@
|
||||
TEST(GetUserName,simple)
|
||||
{
|
||||
// allocate a WCHAR_T buffer to receive username
|
||||
DWORD lpnSize = 64;
|
||||
DWORD lpnSize = L_cuserid;
|
||||
WCHAR_T lpBuffer[lpnSize];
|
||||
|
||||
BOOL result = GetUserName(lpBuffer, &lpnSize);
|
||||
|
||||
Reference in new issue
Block a user