Minor typo and indentation fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6510 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
47eadad506
commit
7ee1a114a9
8 changed files with 68 additions and 67 deletions
|
@ -9,7 +9,7 @@
|
|||
#define NSISFunction(funcname) void __declspec(dllexport) funcname(HWND hwndParent, int string_size, TCHAR *variables, stack_t **stacktop, extra_parameters *extra)
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) {
|
||||
return TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*************\
|
||||
|
@ -44,12 +44,12 @@ NSISFunction(AutodialOnline) {
|
|||
return;
|
||||
}
|
||||
|
||||
EXDLL_INIT();
|
||||
EXDLL_INIT();
|
||||
|
||||
if (pInternetAutodial(INTERNET_AUTODIAL_FORCE_ONLINE, 0))
|
||||
pushstring(_T("online"));
|
||||
else
|
||||
pushstring(_T("offline"));
|
||||
pushstring(_T("online"));
|
||||
else
|
||||
pushstring(_T("offline"));
|
||||
|
||||
FreeWinInet();
|
||||
}
|
||||
|
@ -62,12 +62,12 @@ NSISFunction(AutodialUnattended) {
|
|||
return;
|
||||
}
|
||||
|
||||
EXDLL_INIT();
|
||||
EXDLL_INIT();
|
||||
|
||||
if (pInternetAutodial(INTERNET_AUTODIAL_FORCE_UNATTENDED , 0))
|
||||
pushstring(_T("online"));
|
||||
else
|
||||
pushstring(_T("offline"));
|
||||
if (pInternetAutodial(INTERNET_AUTODIAL_FORCE_UNATTENDED , 0))
|
||||
pushstring(_T("online"));
|
||||
else
|
||||
pushstring(_T("offline"));
|
||||
|
||||
FreeWinInet();
|
||||
}
|
||||
|
@ -83,15 +83,15 @@ NSISFunction(AttemptConnect) {
|
|||
EXDLL_INIT();
|
||||
|
||||
if (pInternetAttemptConnect(0) == ERROR_SUCCESS)
|
||||
pushstring(_T("online"));
|
||||
else
|
||||
pushstring(_T("offline"));
|
||||
pushstring(_T("online"));
|
||||
else
|
||||
pushstring(_T("offline"));
|
||||
|
||||
FreeWinInet();
|
||||
}
|
||||
|
||||
NSISFunction(GetConnectedState) {
|
||||
DWORD dwState;
|
||||
DWORD dwState;
|
||||
|
||||
typedef BOOL (WINAPI *fGetConState)(LPDWORD, DWORD);
|
||||
fGetConState pInternetGetConnectedState = (fGetConState) GetWinInetFunc("InternetGetConnectedState");
|
||||
|
@ -100,12 +100,12 @@ NSISFunction(GetConnectedState) {
|
|||
return;
|
||||
}
|
||||
|
||||
EXDLL_INIT();
|
||||
EXDLL_INIT();
|
||||
|
||||
if (pInternetGetConnectedState(&dwState, 0))
|
||||
pushstring(_T("online"));
|
||||
else
|
||||
pushstring(_T("offline"));
|
||||
if (pInternetGetConnectedState(&dwState, 0))
|
||||
pushstring(_T("online"));
|
||||
else
|
||||
pushstring(_T("offline"));
|
||||
|
||||
FreeWinInet();
|
||||
}
|
||||
|
@ -118,12 +118,12 @@ NSISFunction(AutodialHangup) {
|
|||
return;
|
||||
}
|
||||
|
||||
EXDLL_INIT();
|
||||
EXDLL_INIT();
|
||||
|
||||
if (pInternetAutodialHangup(0))
|
||||
pushstring(_T("success"));
|
||||
else
|
||||
pushstring(_T("failure"));
|
||||
if (pInternetAutodialHangup(0))
|
||||
pushstring(_T("success"));
|
||||
else
|
||||
pushstring(_T("failure"));
|
||||
|
||||
FreeWinInet();
|
||||
}
|
||||
|
|
|
@ -37,5 +37,5 @@ void __declspec(dllexport) myFunction(HWND hwndParent, int string_size,
|
|||
BOOL WINAPI DllMain(HINSTANCE hInst, ULONG ul_reason_for_call, LPVOID lpReserved)
|
||||
{
|
||||
g_hInstance=hInst;
|
||||
return TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -144,7 +144,7 @@ ENDIF
|
|||
|
||||
EXTERN __alloca_probe : PROC
|
||||
|
||||
EXTERN __imp__GlobalFree@4 : PROC
|
||||
EXTERN __imp__GlobalFree@4 : PROC
|
||||
EXTERN __imp__GetLastError@0 : PROC
|
||||
|
||||
IFDEF _UNICODE
|
||||
|
@ -572,7 +572,7 @@ params_loop_done:
|
|||
IFDEF SYSTEM_LOG_DEBUG
|
||||
SYSTEM_LOG_INIT
|
||||
SYSTEM_LOG_ADD offset LogBackFrom
|
||||
;# LastProc->ProcName
|
||||
;# LastProc->ProcName
|
||||
call _GetProcNameOffset
|
||||
mov ecx,dword ptr [_LastProc]
|
||||
add eax,ecx
|
||||
|
|
|
@ -1334,7 +1334,7 @@ Returns size by which the stack should be expanded
|
|||
*/
|
||||
unsigned int GetNewStackSize(void)
|
||||
{
|
||||
return NEW_STACK_SIZE;
|
||||
return NEW_STACK_SIZE;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1342,7 +1342,7 @@ Returns non-zero value if GENSTACK option is set
|
|||
*/
|
||||
unsigned int GetGenStackOption(SystemProc *proc)
|
||||
{
|
||||
return (proc->Options & POPT_GENSTACK);
|
||||
return (proc->Options & POPT_GENSTACK);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1350,7 +1350,7 @@ Returns non-zero value if CDECL option is set
|
|||
*/
|
||||
unsigned int GetCDeclOption(SystemProc *proc)
|
||||
{
|
||||
return (proc->Options & POPT_CDECL);
|
||||
return (proc->Options & POPT_CDECL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1358,7 +1358,7 @@ Returns non-zero value if Error option is set
|
|||
*/
|
||||
unsigned int GetErrorOption(SystemProc *proc)
|
||||
{
|
||||
return (proc->Options & POPT_ERROR);
|
||||
return (proc->Options & POPT_ERROR);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1366,7 +1366,7 @@ Returns offset for element Proc of SystemProc structure
|
|||
*/
|
||||
UINT_PTR GetProcOffset(void)
|
||||
{
|
||||
return (UINT_PTR)(&(((SystemProc *)0)->Proc));
|
||||
return (UINT_PTR)(&(((SystemProc *)0)->Proc));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1374,7 +1374,7 @@ Returns offset for element Clone of SystemProc structure
|
|||
*/
|
||||
unsigned int GetCloneOffset(void)
|
||||
{
|
||||
return (unsigned int)(&(((SystemProc *)0)->Clone));
|
||||
return (unsigned int)(&(((SystemProc *)0)->Clone));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1382,7 +1382,7 @@ Returns offset for element ProcName of SystemProc structure
|
|||
*/
|
||||
unsigned int GetProcNameOffset(void)
|
||||
{
|
||||
return (unsigned int)(&(((SystemProc *)0)->ProcName));
|
||||
return (unsigned int)(&(((SystemProc *)0)->ProcName));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1390,7 +1390,7 @@ Returns offset for element ArgsSize of SystemProc structure
|
|||
*/
|
||||
unsigned int GetArgsSizeOffset(void)
|
||||
{
|
||||
return (unsigned int)(&(((SystemProc *)0)->ArgsSize));
|
||||
return (unsigned int)(&(((SystemProc *)0)->ArgsSize));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1398,7 +1398,7 @@ Returns number of parameters
|
|||
*/
|
||||
unsigned int GetParamCount(SystemProc *proc)
|
||||
{
|
||||
return proc->ParamCount;
|
||||
return proc->ParamCount;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1406,7 +1406,7 @@ Returns offset for element Params of SystemProc structure
|
|||
*/
|
||||
UINT_PTR GetParamsOffset(void)
|
||||
{
|
||||
return (UINT_PTR)(&(((SystemProc *)0)->Params));
|
||||
return (UINT_PTR)(&(((SystemProc *)0)->Params));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1414,7 +1414,7 @@ Returns size of ProcParameter structure
|
|||
*/
|
||||
UINT_PTR GetSizeOfProcParam(void)
|
||||
{
|
||||
return (sizeof(ProcParameter));
|
||||
return (sizeof(ProcParameter));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1422,7 +1422,7 @@ Returns offset for element Size of ProcParameter structure
|
|||
*/
|
||||
unsigned int GetSizeOffsetParam(void)
|
||||
{
|
||||
return (unsigned int)(&(((ProcParameter *)0)->Size));
|
||||
return (unsigned int)(&(((ProcParameter *)0)->Size));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1430,7 +1430,7 @@ Returns offset for element Value of ProcParameter structure
|
|||
*/
|
||||
UINT_PTR GetValueOffsetParam(void)
|
||||
{
|
||||
return (UINT_PTR)(&(((ProcParameter *)0)->Value));
|
||||
return (UINT_PTR)(&(((ProcParameter *)0)->Value));
|
||||
}
|
||||
|
||||
#ifndef _WIN64
|
||||
|
@ -1439,7 +1439,7 @@ Returns offset for element _value of ProcParameter structure
|
|||
*/
|
||||
unsigned int Get_valueOffsetParam(void)
|
||||
{
|
||||
return (unsigned int)(&(((ProcParameter *)0)->_value));
|
||||
return (unsigned int)(&(((ProcParameter *)0)->_value));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1448,7 +1448,7 @@ Sets "CLONE" option
|
|||
*/
|
||||
void SetCloneOption(SystemProc *proc)
|
||||
{
|
||||
proc->Options |= POPT_CLONE;
|
||||
proc->Options |= POPT_CLONE;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1456,7 +1456,7 @@ Sets Result of procedure call to be "OK"
|
|||
*/
|
||||
void SetProcResultOk(SystemProc *proc)
|
||||
{
|
||||
proc->ProcResult = PR_OK;
|
||||
proc->ProcResult = PR_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1464,5 +1464,5 @@ Sets Result of procedure call to be "CALLBACK"
|
|||
*/
|
||||
void SetProcResultCallback(SystemProc *proc)
|
||||
{
|
||||
proc->ProcResult = PR_CALLBACK;
|
||||
proc->ProcResult = PR_CALLBACK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue