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

Function SetUserVariableW

include/nsis/pluginapi.c:161–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void NSISCALL SetUserVariableW(const int varnum, LPCWSTR wideStr)
162{
163 if (wideStr && isvalidnsisvarindex(varnum))
164 {
165 LPSTR ansiStr = g_variables + varnum * g_stringsize;
166 WideCharToMultiByte(CP_ACP, 0, wideStr, -1, ansiStr, g_stringsize, NULL, NULL);
167 }
168}
169#endif
170
171// playing with integers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected