Update of /cvsroot/opengtoolkit/pipe/c_source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6829/c_source
Modified Files:
pipes.c
Log Message:
Added error code translation
Index: pipes.c
===================================================================
RCS file: /cvsroot/opengtoolkit/pipe/c_source/pipes.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pipes.c 15 Mar 2004 07:59:06 -0000 1.3
--- pipes.c 15 Mar 2004 08:01:16 -0000 1.4
***************
*** 323,326 ****
--- 323,336 ----
};
+ /* The following two constants must be the minimum and maximum
+ values in the (contiguous) range of Exec Failure errors. */
+ #define MIN_EXEC_ERROR ERROR_INVALID_STARTING_CODESEG
+ #define MAX_EXEC_ERROR ERROR_INFLOOP_IN_RELOC_CHAIN
+
+ /* These are the low and high value in the range of errors that are
+ access violations */
+ #define MIN_EACCES_RANGE ERROR_WRITE_PROTECT
+ #define MAX_EACCES_RANGE ERROR_SHARING_BUFFER_EXCEEDED
+
static MgErr Win32ToLVErr(DWORD error)
{
***************
*** 344,348 ****
else if (error >= MIN_EXEC_ERROR && error <= MAX_EXEC_ERROR)
return mgArgErr;
! return mgArgErr
}
--- 354,358 ----
else if (error >= MIN_EXEC_ERROR && error <= MAX_EXEC_ERROR)
return mgArgErr;
! return mgArgErr;
}
|