Line | |
---|
1 | #include "sysincludes.h"
|
---|
2 | #include "msdos.h"
|
---|
3 | #include "mtools.h"
|
---|
4 | #include "vfat.h"
|
---|
5 | #include "file.h"
|
---|
6 | #include "buffer.h"
|
---|
7 |
|
---|
8 | /*
|
---|
9 | * Find the directory and load a new dir_chain[]. A null directory
|
---|
10 | * is OK. Returns a 1 on error.
|
---|
11 | */
|
---|
12 |
|
---|
13 |
|
---|
14 | void bufferize(Stream_t **Dir)
|
---|
15 | {
|
---|
16 | Stream_t *BDir;
|
---|
17 |
|
---|
18 | if(!*Dir)
|
---|
19 | return;
|
---|
20 | BDir = buf_init(*Dir, 64*16384, 512, MDIR_SIZE);
|
---|
21 | if(!BDir){
|
---|
22 | FREE(Dir);
|
---|
23 | *Dir = NULL;
|
---|
24 | } else
|
---|
25 | *Dir = BDir;
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.