Skip to content

Commit

Permalink
fixup! win,msi: use localized "Authenticated Users" name
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlau committed Jul 3, 2021
1 parent a107e90 commit b781072
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/msvs/msi/custom_actions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <msiquery.h>
#include <wcautil.h>
#include <sddl.h>
#include <Lmcons.h>

#define GUID_BUFFER_SIZE 39 // {8-4-4-4-12}\0

Expand Down Expand Up @@ -102,10 +103,10 @@ extern "C" UINT WINAPI BroadcastEnvironmentUpdate(MSIHANDLE hInstall) {
extern "C" UINT WINAPI GetLocalizedUserNames(MSIHANDLE hInstall) {
HRESULT hr = S_OK;
UINT er = ERROR_SUCCESS;
TCHAR userName[MAX_PATH] = {0};
DWORD userNameSize = MAX_PATH;
TCHAR domain[MAX_PATH] = {0};
DWORD domainSize = MAX_PATH;
TCHAR userName[UNLEN + 1] = {0};
DWORD userNameSize = UNLEN + 1;
TCHAR domain[DNLEN + 1] = {0};
DWORD domainSize = DNLEN + 1;
PSID sid;
SID_NAME_USE nameUse;

Expand Down

0 comments on commit b781072

Please sign in to comment.