There was an error while loading. Please reload this page.
1 parent a107e90 commit b781072Copy full SHA for b781072
tools/msvs/msi/custom_actions.cc
@@ -4,6 +4,7 @@
4
#include <msiquery.h>
5
#include <wcautil.h>
6
#include <sddl.h>
7
+#include <Lmcons.h>
8
9
#define GUID_BUFFER_SIZE 39 // {8-4-4-4-12}\0
10
@@ -102,10 +103,10 @@ extern "C" UINT WINAPI BroadcastEnvironmentUpdate(MSIHANDLE hInstall) {
102
103
extern "C" UINT WINAPI GetLocalizedUserNames(MSIHANDLE hInstall) {
104
HRESULT hr = S_OK;
105
UINT er = ERROR_SUCCESS;
- TCHAR userName[MAX_PATH] = {0};
106
- DWORD userNameSize = MAX_PATH;
107
- TCHAR domain[MAX_PATH] = {0};
108
- DWORD domainSize = MAX_PATH;
+ TCHAR userName[UNLEN + 1] = {0};
+ DWORD userNameSize = UNLEN + 1;
+ TCHAR domain[DNLEN + 1] = {0};
109
+ DWORD domainSize = DNLEN + 1;
110
PSID sid;
111
SID_NAME_USE nameUse;
112
0 commit comments