remove special implementation of stack operations and use plugin.lib instead

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5835 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-12-12 17:39:35 +00:00
parent 7ee44a65dc
commit 41836a0f4a
7 changed files with 22 additions and 169 deletions

View file

@ -1,7 +1,8 @@
#include <windows.h>
#include <plugin.h> // nsis plugin.h
#include "defs.h"
#include "nsis.h"
#include "input.h"
#include "rtl.h"
@ -299,19 +300,19 @@ void __declspec(dllexport) CreateControl(HWND hwndParent, int string_size, char
return;
}
if (popstring(className, 0))
if (popstringn(className, 0))
{
pushstring("error");
HeapFree(GetProcessHeap(), 0, className);
return;
}
style = (DWORD) popint();
exStyle = (DWORD) popint();
style = (DWORD) popint_or();
exStyle = (DWORD) popint_or();
PopPlacement(&x, &y, &width, &height);
if (popstring(text, 0))
if (popstringn(text, 0))
{
pushstring("error");
HeapFree(GetProcessHeap(), 0, className);
@ -418,7 +419,7 @@ void __declspec(dllexport) SetUserData(HWND hwndParent, int string_size, char *v
// set user data
popstring(ctl->userData, USERDATA_SIZE);
popstringn(ctl->userData, USERDATA_SIZE);
}
void __declspec(dllexport) GetUserData(HWND hwndParent, int string_size, char *variables, stack_t **stacktop, extra_parameters *extra)