Changeset 1439 for trunk/dll/wrappers.c
- Timestamp:
- Jul 12, 2009, 11:57:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/wrappers.c
r1438 r1439 17 17 25 Dec 08 GKY Add code to allow write verify to be turned off on a per drive basis 18 18 17 Jun 09 SHL Correct missing rc set 19 12 Jul 09 GKY Add xDosQueryAppType and xDoxAlloc... to allow FM/2 to load in high memory 19 20 20 21 ***********************************************************************/ … … 45 46 #include "info.h" // driveflags 46 47 #include "notebook.h" // fVerify 48 #include "pathutil.h" // MaxComLineStrg 47 49 48 50 // Data definitions … … 51 53 #pragma data_seg(GLOBAL1) 52 54 BOOL fNoLargeFileSupport; 55 56 APIRET xDosQueryAppType(PCSZ pszName, PULONG pFlags) 57 { 58 APIRET rc; 59 # ifdef HIMEM 60 char *pszPgm; 61 62 rc = DosAllocMem((PVOID)&pszPgm, 63 MaxComLineStrg, 64 PAG_COMMIT | PAG_READ | PAG_WRITE); 65 if (rc) { 66 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, 67 __LINE__, GetPString(IDS_OUTOFMEMORY)); 68 return -1; 69 } 70 strcpy(pszPgm, pszName); 71 rc = DosQueryAppType(pszPgm, pFlags); 72 DosFreeMem(pszPgm); 73 return rc; 74 # else 75 rc = DosQueryAppType(pszName, pFlags); 76 return rc; 77 # endif 78 } 53 79 54 80 APIRET xDosAllocSharedMem(PPVOID ppb, … … 60 86 61 87 rc = DosAllocSharedMem(ppb, pszName, cb, flag | OBJ_ANY); 62 DbgMsg(pszSrcFile, __LINE__, "ppb %p", *ppb);88 //DbgMsg(pszSrcFile, __LINE__, "ppb %p", *ppb); 63 89 if (rc) 64 90 rc = DosAllocSharedMem(ppb, pszName, cb, flag); … … 68 94 APIRET xDosAllocMem(PPVOID ppb, 69 95 ULONG cb, 70 ULONG flag) 96 ULONG flag, 97 PCSZ pszSrcFile, 98 UINT uiLineNumber) 71 99 { 72 100 APIRET rc; 73 101 74 102 rc = DosAllocMem(ppb, cb, flag | OBJ_ANY); 75 DbgMsg(pszSrcFile, __LINE__, "ppb %p %x", *ppb, rc);103 //DbgMsg(pszSrcFile, uiLineNumber, "ppb %p %x", *ppb, rc); 76 104 if (rc) 77 105 rc = DosAllocMem(ppb, cb, flag); 78 DbgMsg(pszSrcFile, __LINE__, "ppb %p", *ppb);106 //DbgMsg(pszSrcFile, uiLineNumber, "ppb %p", *ppb); 79 107 return rc; 80 108 }
Note:
See TracChangeset
for help on using the changeset viewer.