Hans Leidekker (@hans) commented about programs/whoami/main.c:
BOOL result;
- if (argc > 1)
- result = GetUserNameExW(name_format, NULL, &size);
- if (result || GetLastError() != ERROR_MORE_DATA) {
int i;
ERR("GetUserNameExW expected ERROR_MORE_DATA, error %ld\n", GetLastError());
return FALSE;
- }
WINE_FIXME("unsupported arguments:");
for (i = 0; i < argc; i++)
WINE_FIXME(" %s", wine_dbgstr_w(argv[i]));
WINE_FIXME("\n");
- *name = HeapAlloc(GetProcessHeap(), 0, size * sizeof(WCHAR));
Please use malloc()/free() for new code.