|
|
| version 1.10, 2004/01/22 04:59:48 | version 1.12, 2004/02/20 16:20:41 |
|---|---|
| Line 1262 void hostdrv_mount(const void *arg1, lon | Line 1262 void hostdrv_mount(const void *arg1, lon |
| if ((np2cfg.hdrvroot[0] == '\0') || (hostdrv.stat.is_mount)) { | if ((np2cfg.hdrvroot[0] == '\0') || (hostdrv.stat.is_mount)) { |
| np2sysp_outstr("ng", 0); | np2sysp_outstr("ng", 0); |
| return; | |
| } | } |
| hostdrv.stat.is_mount = TRUE; | hostdrv.stat.is_mount = TRUE; |
| fetch_if4dos(); | fetch_if4dos(); |
| Line 1327 static BOOL fhdl_wr(void *vpItem, void * | Line 1328 static BOOL fhdl_wr(void *vpItem, void * |
| len = strlen(p); | len = strlen(p); |
| statflag_write((STFLAGH)vpArg, &len, sizeof(len)); | statflag_write((STFLAGH)vpArg, &len, sizeof(len)); |
| if (len) { | if (len) { |
| if (len < sizeof(MAX_PATH)) { | if (len < MAX_PATH) { |
| ZeroMemory(p + len, sizeof(MAX_PATH) - len); | ZeroMemory(p + len, MAX_PATH - len); |
| } | } |
| statflag_write((STFLAGH)vpArg, vpItem, sizeof(_HDRVFILE)); | statflag_write((STFLAGH)vpArg, vpItem, sizeof(_HDRVFILE)); |
| } | } |
| Line 1342 static BOOL flist_wr(void *vpItem, void | Line 1343 static BOOL flist_wr(void *vpItem, void |
| p = ((HDRVLST)vpItem)->realname; | p = ((HDRVLST)vpItem)->realname; |
| len = strlen(p); | len = strlen(p); |
| if (len < sizeof(MAX_PATH)) { | if (len < MAX_PATH) { |
| ZeroMemory(p + len, sizeof(MAX_PATH) - len); | ZeroMemory(p + len, MAX_PATH - len); |
| } | } |
| statflag_write((STFLAGH)vpArg, vpItem, sizeof(_HDRVLST)); | statflag_write((STFLAGH)vpArg, vpItem, sizeof(_HDRVLST)); |
| return(FALSE); | return(FALSE); |