| 37 | } |
| 38 | |
| 39 | int NSISCALL popstringn(LPTSTR str, int maxlen) |
| 40 | { |
| 41 | stack_t *th; |
| 42 | if (!g_stacktop || !*g_stacktop) return 1; |
| 43 | th=(*g_stacktop); |
| 44 | if (str) lstrcpyn(str,th->text,maxlen?maxlen:(int)g_stringsize); |
| 45 | *g_stacktop = th->next; |
| 46 | GlobalFree((HGLOBAL)th); |
| 47 | return 0; |
| 48 | } |
| 49 | |
| 50 | void NSISCALL pushstring(LPCTSTR str) |
| 51 | { |
no outgoing calls
no test coverage detected