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

Function PushStringW

include/nsis/pluginapi.c:142–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void NSISCALL PushStringW(LPWSTR wideStr)
143{
144 LPSTR ansiStr = (LPSTR) GlobalAlloc(GPTR, g_stringsize);
145 WideCharToMultiByte(CP_ACP, 0, wideStr, -1, ansiStr, g_stringsize, NULL, NULL);
146 pushstring(ansiStr);
147 GlobalFree((HGLOBAL)ansiStr);
148}
149
150void NSISCALL GetUserVariableW(const int varnum, LPWSTR wideStr)
151{

Callers

nothing calls this directly

Calls 1

pushstringFunction · 0.85

Tested by

no test coverage detected