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:
Loki Rautio
2026-03-04 05:44:16 -06:00
parent e6950a91d9
commit 0993e628ab

View File

@@ -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;
}