Disable automatic Windows account username
This could reveal someone's private information on a livestream or video. We need a long-term username implementation
This commit is contained in:
@@ -1112,8 +1112,9 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||
if (g_Win64Username[0] == 0)
|
||||
{
|
||||
DWORD sz = 17;
|
||||
if (!GetUserNameA(g_Win64Username, &sz))
|
||||
strncpy_s(g_Win64Username, 17, "Player", _TRUNCATE);
|
||||
//if (!GetUserNameA(g_Win64Username, &sz))
|
||||
// todo: SET USERNAMES PROPERLY
|
||||
strncpy_s(g_Win64Username, 17, "Player", _TRUNCATE);
|
||||
g_Win64Username[16] = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user