Fix GetCurrentDirectoryA and W to return the needed space for the CWD, if the buffer size is not large enough.