--- parser3/src/targets/isapi/parser3isapi.C 2005/08/24 09:20:57 1.92.8.2 +++ parser3/src/targets/isapi/parser3isapi.C 2005/11/22 12:48:40 1.95 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_PARSER3ISAPI_C="$Date: 2005/08/24 09:20:57 $"; +static const char * const IDENT_PARSER3ISAPI_C="$Date: 2005/11/22 12:48:40 $"; #ifndef _MSC_VER # error compile ISAPI module with MSVC [no urge for now to make it autoconf-ed (PAF)] @@ -55,8 +55,7 @@ const int IIS51var_count=sizeof(IIS51var // globals -char argv0buf[MAX_STRING]=""; -const char* argv0; +char argv0[MAX_STRING]=""; // SAPI @@ -318,6 +317,9 @@ BOOL WINAPI TerminateExtension( @test PARSER_VERSION from outside */ +#ifndef PA_DEBUG_DISABLE_GC +extern long GC_large_alloc_warn_suppressed; +#endif void real_parser_handler(SAPI_Info& SAPI_info, bool header_only) { // collect garbage from prev request @@ -327,6 +329,7 @@ void real_parser_handler(SAPI_Info& SAPI GC_dont_gc=0; GC_gcollect(); GC_dont_gc=saved; + GC_large_alloc_warn_suppressed=0; } #endif @@ -391,7 +394,7 @@ void real_parser_handler(SAPI_Info& SAPI snprintf(config_filespec, MAX_STRING, "%s/%s", beside_binary_path, AUTO_FILE_NAME); - bool fail_on_config_read_problem=entry_exists(config_filespec); + bool fail_on_config_read_problem=true;//entry_exists(config_filespec); // process the request request.core( @@ -543,13 +546,9 @@ BOOL WINAPI DllMain( GetModuleFileName( hinstDLL, // handle to module - argv0buf, // file name of module - sizeof(argv0buf) // size of buffer + argv0, // file name of module + sizeof(argv0) // size of buffer ); - argv0=argv0buf; - if(strncmp(argv0buf, "\\\\?\\", 4)==0) - argv0+=4; - return TRUE; } \ No newline at end of file