Skip to content
Snippets Groups Projects
Commit f9699543 authored by deuce's avatar deuce
Browse files

Add 64-bit dirty note regarding opendir/readdir/rewinddir/closedir

Hope this fixes itself.  :-)
parent 1adca312
No related branches found
No related tags found
No related merge requests found
......@@ -1383,6 +1383,7 @@ int sbbs_t::exec_misc(csi_t* csi, char *path)
csi->ip+=4;
csi->logic=LOGIC_FALSE;
if(pp && *pp && lp) {
/* 64-bit dirty */
*lp=(long)opendir((char *)*pp);
if(*lp)
csi->logic=LOGIC_TRUE; }
......@@ -1394,6 +1395,7 @@ int sbbs_t::exec_misc(csi_t* csi, char *path)
csi->ip+=4;
csi->logic=LOGIC_FALSE;
if(pp && lp) {
/* 64-bit dirty */
de=readdir((DIR *)(*lp));
if(de!=NULL) {
csi->logic=LOGIC_TRUE;
......@@ -1403,6 +1405,7 @@ int sbbs_t::exec_misc(csi_t* csi, char *path)
lp=getintvar(csi,*(int32_t *)csi->ip);
csi->ip+=4;
if(lp) {
/* 64-bit dirty */
rewinddir((DIR *)(*lp));
csi->logic=LOGIC_TRUE; }
else
......@@ -1411,6 +1414,7 @@ int sbbs_t::exec_misc(csi_t* csi, char *path)
case CLOSE_DIR:
lp=getintvar(csi,*(int32_t *)csi->ip);
csi->ip+=4;
/* 64-bit dirty */
if(lp && closedir((DIR *)(*lp))==0)
csi->logic=LOGIC_TRUE;
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment