Permalink
Browse files

fixed linesize

  • Loading branch information...
turleypol committed Oct 9, 2018
1 parent 5b652ba commit 0864d3a31e389f757c99149b3d3229196eb9956c
@@ -2903,7 +2903,8 @@ int Compiler::handleBracketedWhile( CompilerContext& ctx, int level )
emit_leaveblock();
// jump back to conditional expression
program->append( StoredToken( Mod_Basic, RSV_GOTO, TYP_RESERVED, conditional_expr_posn ), nullptr );
program->append( StoredToken( Mod_Basic, RSV_GOTO, TYP_RESERVED, conditional_expr_posn ),
nullptr );
// Control should jump past the loop when the expr evaluates to false.
unsigned exit_loop_posn = prog_tokens->next();
@@ -4978,7 +4979,7 @@ int Compiler::getFileContents( const char* file, char** iv )
return -1;
}
if (fread( s, filelen, 1, fp ) != 1 )
if ( fread( s, filelen, 1, fp ) != 1 )
{
fclose( fp );
return -1;
@@ -636,8 +636,8 @@ void ExceptionParser::initGlobalExceptionCatching()
// set handler stack
stack_t tStack;
// mmap: no false positives for leak, plus guardpages to get SIGSEGV on memory overwrites
char* mem = static_cast<char*>( mmap( nullptr, SIGSTKSZ + 2 * getpagesize(), PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANON, -1, 0 ) );
char* mem = static_cast<char*>( mmap( nullptr, SIGSTKSZ + 2 * getpagesize(),
PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0 ) );
mprotect( mem, getpagesize(), PROT_NONE );
mprotect( mem + getpagesize() + SIGSTKSZ, getpagesize(), PROT_NONE );
tStack.ss_sp = mem + getpagesize();
@@ -145,8 +145,8 @@ BOOL CNTService::IsInstalled()
BOOL bResult = FALSE;
// Open the Service Control Manager
SC_HANDLE hSCM = ::OpenSCManager( nullptr, // local machine
nullptr, // ServicesActive database
SC_HANDLE hSCM = ::OpenSCManager( nullptr, // local machine
nullptr, // ServicesActive database
SC_MANAGER_ALL_ACCESS ); // full access
if ( hSCM )
{
@@ -167,8 +167,8 @@ BOOL CNTService::IsInstalled()
BOOL CNTService::Install()
{
// Open the Service Control Manager
SC_HANDLE hSCM = ::OpenSCManager( nullptr, // local machine
nullptr, // ServicesActive database
SC_HANDLE hSCM = ::OpenSCManager( nullptr, // local machine
nullptr, // ServicesActive database
SC_MANAGER_ALL_ACCESS ); // full access
if ( !hSCM )
return FALSE;
@@ -179,11 +179,11 @@ BOOL CNTService::Install()
strcat( szFilePath, " -s" );
// Create the service
SC_HANDLE hService =
::CreateService( hSCM, m_szServiceName, m_szServiceName, SERVICE_ALL_ACCESS,
SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS,
SERVICE_DEMAND_START, // start condition
SERVICE_ERROR_NORMAL, szFilePath, nullptr, nullptr, nullptr, nullptr, nullptr );
SC_HANDLE hService = ::CreateService( hSCM, m_szServiceName, m_szServiceName, SERVICE_ALL_ACCESS,
SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS,
SERVICE_DEMAND_START, // start condition
SERVICE_ERROR_NORMAL, szFilePath, nullptr, nullptr, nullptr,
nullptr, nullptr );
if ( !hService )
{
::CloseServiceHandle( hSCM );
@@ -224,8 +224,8 @@ BOOL CNTService::Install()
BOOL CNTService::Uninstall()
{
// Open the Service Control Manager
SC_HANDLE hSCM = ::OpenSCManager( nullptr, // local machine
nullptr, // ServicesActive database
SC_HANDLE hSCM = ::OpenSCManager( nullptr, // local machine
nullptr, // ServicesActive database
SC_MANAGER_ALL_ACCESS ); // full access
if ( !hSCM )
return FALSE;
@@ -273,7 +273,7 @@ void CNTService::LogEvent( WORD wType, DWORD dwID, const char* pszS1, const char
// not then register it now
if ( !m_hEventSource )
{
m_hEventSource = ::RegisterEventSource( nullptr, // local machine
m_hEventSource = ::RegisterEventSource( nullptr, // local machine
m_szServiceName ); // source name
}
View
@@ -5,9 +5,9 @@
* - 2009-07-18 MuadDib: Updated dump messages for bug tracker
*/
#include "mdump.h"
#include "clib.h"
#include "logfacility.h"
#include "mdump.h"
#include "passert.h"
#include "strexcpt.h"
#include "threadhelp.h"
@@ -168,8 +168,8 @@ LONG HiddenMiniDumper::TopLevelFilter( struct _EXCEPTION_POINTERS* pExceptionInf
dumptype = MiniDumpNormal;
ERROR_PRINT << "Unhandled Exception! Minidump started...\n";
BOOL bOK =
pDump( GetCurrentProcess(), GetCurrentProcessId(), hFile, dumptype, &ExInfo, nullptr, nullptr );
BOOL bOK = pDump( GetCurrentProcess(), GetCurrentProcessId(), hFile, dumptype, &ExInfo,
nullptr, nullptr );
if ( bOK )
{
result.Format(

0 comments on commit 0864d3a

Please sign in to comment.