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:
@@ -1968,7 +1968,7 @@ wxFileKind wxGetFileKind(FILE *fp)
|
|||||||
(void)fp;
|
(void)fp;
|
||||||
return wxFILE_KIND_DISK;
|
return wxFILE_KIND_DISK;
|
||||||
#else
|
#else
|
||||||
return wxGetFileKind(fileno(fp));
|
return fp ? wxGetFileKind(fileno(fp)) : wxFILE_KIND_UNKNOWN;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user