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

Function PushStringA

include/nsis/pluginapi.c:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void NSISCALL PushStringA(LPCSTR ansiStr)
93{
94 LPWSTR wideStr = (LPWSTR) GlobalAlloc(GPTR, g_stringsize*sizeof(WCHAR));
95 MultiByteToWideChar(CP_ACP, 0, ansiStr, -1, wideStr, g_stringsize);
96 pushstring(wideStr);
97 GlobalFree((HGLOBAL)wideStr);
98 return;
99}
100
101void NSISCALL GetUserVariableW(const int varnum, LPWSTR wideStr)
102{

Callers

nothing calls this directly

Calls 1

pushstringFunction · 0.85

Tested by

no test coverage detected