--- parser3/src/targets/isapi/parser3isapi.C 2005/12/07 13:31:35 1.92.8.4 +++ parser3/src/targets/isapi/parser3isapi.C 2005/12/09 07:18:08 1.96 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_PARSER3ISAPI_C="$Date: 2005/12/07 13:31:35 $"; +static const char * const IDENT_PARSER3ISAPI_C="$Date: 2005/12/09 07:18:08 $"; #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 @@ -274,7 +273,7 @@ static bool parser_init() { // successful finish return true; - } catch(const Exception& e) { // global problem + } catch(.../*const Exception& e*/) { // global problem //const char* body=e.comment(); // unsuccessful finish @@ -542,13 +541,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