mirror of https://github.com/FDOS/kernel.git
Disabled fatal() and fixed nls prototypes.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@407 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
8290c26aa3
commit
2969ad6764
|
@ -203,7 +203,7 @@ STATIC WORD _dsk_init(rqptr rp, ddt * pddt)
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(rp);
|
UNREFERENCED_PARAMETER(rp);
|
||||||
UNREFERENCED_PARAMETER(pddt);
|
UNREFERENCED_PARAMETER(pddt);
|
||||||
fatal("No disk init!");
|
/*fatal("No disk init!");*/
|
||||||
return S_DONE; /* to keep the compiler happy */
|
return S_DONE; /* to keep the compiler happy */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -586,7 +586,7 @@ COUNT DosSetCountry(UWORD cntry)
|
||||||
/*
|
/*
|
||||||
* Called for DOS-66-01 get CP
|
* Called for DOS-66-01 get CP
|
||||||
*/
|
*/
|
||||||
COUNT DosGetCodepage(UWORD * actCP, UWORD * sysCP)
|
COUNT DosGetCodepage(UWORD FAR * actCP, UWORD FAR * sysCP)
|
||||||
{
|
{
|
||||||
*sysCP = nlsInfo.sysCodePage;
|
*sysCP = nlsInfo.sysCodePage;
|
||||||
*actCP = nlsInfo.actPkg->cp;
|
*actCP = nlsInfo.actPkg->cp;
|
||||||
|
|
|
@ -406,8 +406,8 @@ COUNT DosComLoader(BYTE FAR * namep, exec_blk FAR * exp, COUNT mode)
|
||||||
/* If file not found - error */
|
/* If file not found - error */
|
||||||
/* NOTE - this is fatal because we lost it in transit */
|
/* NOTE - this is fatal because we lost it in transit */
|
||||||
/* from DosExec! */
|
/* from DosExec! */
|
||||||
if ((rc = DosOpen(namep, 0)) < 0)
|
/* if ((rc = DosOpen(namep, 0)) < 0)
|
||||||
fatal("(DosComLoader) com file lost in transit");
|
fatal("(DosComLoader) com file lost in transit");*/
|
||||||
|
|
||||||
/* do it in 32K chunks */
|
/* do it in 32K chunks */
|
||||||
if ((com_size = DosGetFsize(rc)) != 0)
|
if ((com_size = DosGetFsize(rc)) != 0)
|
||||||
|
@ -716,10 +716,12 @@ COUNT DosExeLoader(BYTE FAR * namep, exec_blk FAR * exp, COUNT mode)
|
||||||
/* If file not found - error */
|
/* If file not found - error */
|
||||||
/* NOTE - this is fatal because we lost it in transit */
|
/* NOTE - this is fatal because we lost it in transit */
|
||||||
/* from DosExec! */
|
/* from DosExec! */
|
||||||
|
#if 0
|
||||||
if ((rc = DosOpen(namep, 0)) < 0)
|
if ((rc = DosOpen(namep, 0)) < 0)
|
||||||
{
|
{
|
||||||
fatal("(DosExeLoader) exe file lost in transit");
|
fatal("(DosExeLoader) exe file lost in transit");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* offset to start of image */
|
/* offset to start of image */
|
||||||
if (doslseek(rc, image_offset, 0) != image_offset)
|
if (doslseek(rc, image_offset, 0) != image_offset)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue