Math plugin needs tchar.h
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6561 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
9152c24610
commit
6adc39c848
6 changed files with 6 additions and 4 deletions
|
@ -3,6 +3,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <nsis/pluginapi.h> // nsis plugin
|
||||
#include <nsis/nsis_tchar.h>
|
||||
|
||||
#ifdef _DEBUG
|
||||
//#define _DEBUG_LEAKS
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
#include <nsis/nsis_tchar.h>
|
||||
|
||||
#define DEFAULT_ARRAY_SIZE 1024
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ int rtl;
|
|||
|
||||
WNDPROC lpWndProcOld;
|
||||
|
||||
void (__stdcall *validate_filename)(TCHAR *);
|
||||
void (__stdcall *validate_filename)(LPTSTR);
|
||||
|
||||
INT_PTR CALLBACK dlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
static INT_PTR CALLBACK ParentWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
|
|
|
@ -64,7 +64,7 @@ typedef struct
|
|||
typedef struct {
|
||||
exec_flags_t *exec_flags;
|
||||
int (NSISCALL *ExecuteCodeSegment)(int, HWND);
|
||||
void (NSISCALL *validate_filename)(TCHAR *);
|
||||
void (NSISCALL *validate_filename)(LPTSTR);
|
||||
int (NSISCALL *RegisterPluginCallback)(HMODULE, NSISPLUGINCALLBACK); // returns 0 on success, 1 if already registered and < 0 on errors
|
||||
} extra_parameters;
|
||||
|
||||
|
|
|
@ -855,7 +855,7 @@ TCHAR * NSISCALL GetNSISString(TCHAR *outbuf, int strtab)
|
|||
return ps_tmpbuf;
|
||||
}
|
||||
|
||||
void NSISCALL validate_filename(TCHAR *in) {
|
||||
void NSISCALL validate_filename(LPTSTR in) {
|
||||
TCHAR *nono = _T("*?|<>/\":");
|
||||
TCHAR *out;
|
||||
TCHAR *out_save;
|
||||
|
|
|
@ -98,7 +98,7 @@ TCHAR * NSISCALL findchar(TCHAR *str, TCHAR c);
|
|||
TCHAR * NSISCALL trimslashtoend(TCHAR *buf);
|
||||
TCHAR * NSISCALL skip_root(TCHAR *path);
|
||||
int NSISCALL is_valid_instpath(TCHAR *s);
|
||||
void NSISCALL validate_filename(TCHAR *fn);
|
||||
void NSISCALL validate_filename(LPTSTR fn);
|
||||
|
||||
/**
|
||||
* MoveFileOnReboot tries to move a file by the name of pszExisting to the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue