MCPcopy Create free account
hub / github.com/LegacyUpdate/LegacyUpdate / SetUserVariableA

Function SetUserVariableA

include/nsis/pluginapi.c:112–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void NSISCALL SetUserVariableA(const int varnum, LPCSTR ansiStr)
113{
114 if (ansiStr && isvalidnsisvarindex(varnum))
115 {
116 LPWSTR wideStr = g_variables + varnum * g_stringsize;
117 MultiByteToWideChar(CP_ACP, 0, ansiStr, -1, wideStr, g_stringsize);
118 }
119}
120
121#else
122// ANSI defs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected