Removed the FIXME() and moved SetLastError(0) to the end (so that