mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-31 08:06:54 +08:00
Sync changes from upstream repository
Co-authored-by: croudyj <croudyj@gmail.com> Co-authored-by: Dale Fugier <dale@mcneel.com> Co-authored-by: Dan Rigdon-Bel <dan@mcneel.com> Co-authored-by: kike-garbo <kike@mcneel.com> Co-authored-by: piac <giulio@mcneel.com> Co-authored-by: Pierre Cuvilliers <pierre@mcneel.com>
This commit is contained in:
@@ -114,6 +114,9 @@ bool ON_EmbeddedFile::CImpl::LoadFile(const wchar_t* filename)
|
||||
|
||||
bool ON_EmbeddedFile::CImpl::SaveFile(const wchar_t* filename) const
|
||||
{
|
||||
if (0 == m_data.m_length)
|
||||
return false; // Not loaded.
|
||||
|
||||
// Open the file for writing.
|
||||
auto* pFile = ON_FileStream::Open(filename, L"wb");
|
||||
if (nullptr == pFile)
|
||||
|
||||
Reference in New Issue
Block a user