Fix bug: Footprint add 3D shape recognizes only files with lower case ext on Windows
Fixes: lp:1659027 https://bugs.launchpad.net/kicad/+bug/1659027
This commit is contained in:
committed by
jean-pierre charras
parent
68c2639e7d
commit
2b2b73ee4b
@@ -390,7 +390,11 @@ bool S3D_CACHE::getSHA1( const wxString& aFileName, unsigned char* aSHA1Sum )
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
FILE* fp = _wfopen( aFileName.wc_str(), L"rb" );
|
||||
#else
|
||||
FILE* fp = fopen( aFileName.ToUTF8(), "rb" );
|
||||
#endif
|
||||
|
||||
if( NULL == fp )
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user