Commit db863619 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Fix for converting "OK" into "Internal error"

Whose bright idea was it to use 0 for both? Fixes problem reported
  http://www.riscosopen.org/forum/forums/4/topics/2122

Version 2.42. Tagged as 'LanManFS-2_42'
parent 55ce84d9
/* (2.41)
/* (2.42)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 2.41
#define Module_MajorVersion_CMHG 2.42
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 03 Oct 2013
#define Module_Date_CMHG 04 Oct 2013
#define Module_MajorVersion "2.41"
#define Module_Version 241
#define Module_MajorVersion "2.42"
#define Module_Version 242
#define Module_MinorVersion ""
#define Module_Date "03 Oct 2013"
#define Module_Date "04 Oct 2013"
#define Module_ApplicationDate "03-Oct-13"
#define Module_ApplicationDate "04-Oct-13"
#define Module_ComponentName "LanManFS"
#define Module_ComponentPath "castle/RiscOS/Sources/Networking/Omni/Protocols/LanManFS"
#define Module_FullVersion "2.41"
#define Module_HelpVersion "2.41 (03 Oct 2013)"
#define Module_LibraryVersionInfo "2:41"
#define Module_FullVersion "2.42"
#define Module_HelpVersion "2.42 (04 Oct 2013)"
#define Module_LibraryVersionInfo "2:42"
......@@ -143,11 +143,13 @@ _kernel_oserror *MsgError(int which)
char token[12];
_kernel_oserror *e;
if (which == OK) return NULL; /* No error */
if (which == EUSELASTSETOSERR)
{
/* An OS error outside this module */
if (msg_oserr != NULL) return msg_oserr;
which = 0; /* Internal error! */
which = EHOWDTHATHAPPEN;
}
sprintf(token, "@@@@E%02u", which);
......
......@@ -43,6 +43,7 @@ typedef int err_t;
/* Return error codes */
#define OK 0
#define EHOWDTHATHAPPEN 0
#define EBADPARAM 1
#define ENOCONN 2
#define EOUTOFMEM 3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment