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

Function PopStringNA

include/nsis/pluginapi.c:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82int NSISCALL PopStringNA(LPSTR ansiStr, int maxlen)
83{
84 int realLen = maxlen ? maxlen : (int)g_stringsize;
85 LPWSTR wideStr = (LPWSTR) GlobalAlloc(GPTR, realLen*sizeof(WCHAR));
86 int rval = popstringn(wideStr, realLen);
87 WideCharToMultiByte(CP_ACP, 0, wideStr, -1, ansiStr, realLen, NULL, NULL);
88 GlobalFree((HGLOBAL)wideStr);
89 return rval;
90}
91
92void NSISCALL PushStringA(LPCSTR ansiStr)
93{

Callers

nothing calls this directly

Calls 1

popstringnFunction · 0.85

Tested by

no test coverage detected