Skip to content

Commit

Permalink
Update DriverAssistLog.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Sep 7, 2022
1 parent 48f542e commit 4073ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sandboxie/core/svc/DriverAssistLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ void DriverAssist::LogMessage_Single(ULONG code, wchar_t* data, ULONG pid)

WCHAR user[UNLEN + 1];
WCHAR domain[DNLEN + 1];
if (GetUserNameFromProcess(pid, domain, DNLEN + 1, user, UNLEN + 1)) {
if (GetUserNameFromProcess(pid, user, UNLEN + 1, domain, DNLEN + 1)) {

WCHAR *text2 = (WCHAR *)LocalAlloc(
LMEM_FIXED, (wcslen(text) + DNLEN + UNLEN + 10) * sizeof(WCHAR));
LMEM_FIXED, (wcslen(text) + UNLEN + DNLEN + 10) * sizeof(WCHAR));
if (text2) {

wsprintf(text2, L"%s (%s\\%s)", text, domain, user);
Expand Down

0 comments on commit 4073ac1

Please sign in to comment.