_pclose (via fclose) doesn't handle invalid pointers
http://code.reactos.org/changelog/reactos?cs=62836 for the diff