Changeset 366
- Timestamp:
- Sep 20, 2018, 7:03:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/util/cachef32.c ¶
r365 r366 56 56 int remount_all(void); 57 57 58 BOOL (*pLoadTranslateTable)(BOOL fSilent, UCHAR ucSource) ;58 BOOL (*pLoadTranslateTable)(BOOL fSilent, UCHAR ucSource) = 0; 59 59 60 void (*pbdrv_init)(void) ;61 BlockDriverState *(*pbdrv_new)(const char *device_name) ;62 BlockDriver *(*pbdrv_find_format)(const char *format_name) ;63 void (*pbdrv_delete)(BlockDriverState *bs) ;60 void (*pbdrv_init)(void) = 0; 61 BlockDriverState *(*pbdrv_new)(const char *device_name) = 0; 62 BlockDriver *(*pbdrv_find_format)(const char *format_name) = 0; 63 void (*pbdrv_delete)(BlockDriverState *bs) = 0; 64 64 int (*pbdrv_open2)(BlockDriverState *bs, const char *filename, int flags, 65 BlockDriver *drv) ;65 BlockDriver *drv) = 0; 66 66 int (*pbdrv_pread)(BlockDriverState *bs, int64_t offset, 67 void *buf, int count1) ;67 void *buf, int count1) = 0; 68 68 int (*pbdrv_pwrite)(BlockDriverState *bs, int64_t offset, 69 void *buf, int count1) ;69 void *buf, int count1) = 0; 70 70 71 71 HMODULE hMod = 0; … … 119 119 //ProcessFsTab(FALSE); 120 120 //return 0; 121 121 122 122 rc = DosFSCtl( rgFirstInfo, sizeof( rgFirstInfo ), &ulDataSize, 123 123 NULL, 0, &ulParmSize, … … 713 713 printf("FAT32: Utility DLL not found (%s does not load).\n", rgData); 714 714 printf("FAT32: No UNICODE translate table loaded!\n"); 715 return;715 hMod = 0; 716 716 } 717 717 rc = DosQueryProcAddr(hMod, 0L, … … 720 720 { 721 721 printf("FAT32: ERROR: Could not find address of LoadTranslateTable.\n"); 722 return;722 pLoadTranslateTable = NULL; 723 723 } 724 724 … … 974 974 } 975 975 976 if ( fForeGround && (*pLoadTranslateTable)(fSilent, TRUE))976 if ( fForeGround && pLoadTranslateTable && (*pLoadTranslateTable)(fSilent, TRUE)) 977 977 fSetParms = TRUE; 978 978
Note:
See TracChangeset
for help on using the changeset viewer.