On Thu, Mar 19, 2009 at 12:25:05PM +0900, Paul Wise wrote:
> > Do you want me to provide a test case?
>
> That would be helpful.
Attached.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
NSIS_CC := i586-mingw32msvc-gcc -Os
NSIS_STRIP := i586-mingw32msvc-strip
NSIS_CFLAGS := -Wl,--file-alignment,512 -Werror -D_WIN32_WINNT=0x0500
-L/usr/i586-mingw32msvc/lib/nsis -lpluginapi
all: test.dll
%.dll: %.c
$(NSIS_CC) $^ $(NSIS_CFLAGS) -shared -o $@
$(NSIS_STRIP) $@
clean:
rm -f *.dll
#include <windows.h>
#include <nsis/pluginapi.h>
void __declspec (dllexport) dummy (HWND hwndParent, int string_size, char *variables, stack_t ** stacktop, extra_parameters * extra)
{
EXDLL_INIT ();
}
BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved)
{
return TRUE;
}