| 158 | } |
| 159 | |
| 160 | void cbm_closedir(cbm_dir_t *d) { |
| 161 | if (d) { |
| 162 | if (d->find_handle != INVALID_HANDLE_VALUE) { |
| 163 | FindClose(d->find_handle); |
| 164 | } |
| 165 | free(d); |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | /* Windows _popen replacement that inherits ONLY the child's stdout pipe. |
| 170 | * |
no outgoing calls