| commit | b8a6ea236b150d06ce8f5c2d2f3f614be8dea675 | [log] [tgz] |
|---|---|---|
| author | Steve Lhomme <robux4@ycbcr.xyz> | Mon Apr 27 16:31:01 2020 +0200 |
| committer | Martin Storsjö <martin@martin.st> | Thu May 07 21:42:38 2020 +0300 |
| tree | 62cf9c4826c40ac86bd4c8bd5753665418496aa4 | |
| parent | ed041dba38f03dd4cbbb9ab39716a67ecbb680b9 [diff] |
winstorecompat: provide GetUserName
It's needed by:
- getlogin() in mingwex
GetEnvironmentVariableA("USERNAME") gives the same information (tested on
win10 in cmd.exe and PowerShell).
No implementation provided when building winstorecompat for win8 as
GetEnvironmentVariableA is not allowed and GetUserNameEx requires -lsecur32.
Signed-off-by: Martin Storsjö <martin@martin.st>