Let wxGetFileKind(FILE*) return wxFILE_KIND_UNKNOWN for NULL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ecc201480f
commit
217e77c3c0
1 changed files with 1 additions and 1 deletions
|
|
@ -1968,7 +1968,7 @@ wxFileKind wxGetFileKind(FILE *fp)
|
|||
(void)fp;
|
||||
return wxFILE_KIND_DISK;
|
||||
#else
|
||||
return wxGetFileKind(fileno(fp));
|
||||
return fp ? wxGetFileKind(fileno(fp)) : wxFILE_KIND_UNKNOWN;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue