| 215 | } |
| 216 | |
| 217 | VOID UninitRefitLib(VOID) |
| 218 | { |
| 219 | // called before running external programs to close open file handles |
| 220 | |
| 221 | if (SelfDir != NULL) { |
| 222 | SelfDir->Close(SelfDir); |
| 223 | SelfDir = NULL; |
| 224 | } |
| 225 | |
| 226 | if (OEMDir != NULL) { |
| 227 | OEMDir->Close(OEMDir); |
| 228 | OEMDir = NULL; |
| 229 | } |
| 230 | if (ThemeX.ThemeDir != NULL) { |
| 231 | ThemeX.ThemeDir->Close(ThemeX.ThemeDir); |
| 232 | ThemeX.ThemeDir = NULL; |
| 233 | } |
| 234 | |
| 235 | |
| 236 | if (SelfRootDir != NULL) { |
| 237 | SelfRootDir->Close(SelfRootDir); |
| 238 | SelfRootDir = NULL; |
| 239 | } |
| 240 | |
| 241 | UninitVolumes(); |
| 242 | } |
| 243 | |
| 244 | EFI_STATUS ReinitRefitLib(VOID) |
| 245 | { |
no test coverage detected