You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem seems to be in the Windows version of SizeFromStore for that combination of flags. It calls MultiByteToWideChar with a cbMultiByte of 0, which fails.
I'll see if there's a safe simple fix but I'm not familiar with these character set functions. Otherwise, this may at least help someone else who runs into the issue.
The text was updated successfully, but these errors were encountered:
leokoppel
added a commit
to leokoppel/simpleini
that referenced
this issue
Jul 22, 2016
Re: brofield#19
The Windows, Unicode, UTF-8 version of SizeFromStore returns failure when
given zero-length data. Fix by moving a_uDataLen == 0 check to after the
UTF-8 BOM removal.
Ran into this when trying a simple "will this compile and run?" without anything in the ini file.
SI_CONVERT_WIN32
is set.The problem seems to be in the Windows version of
SizeFromStore
for that combination of flags. It callsMultiByteToWideChar
with acbMultiByte
of 0, which fails.I'll see if there's a safe simple fix but I'm not familiar with these character set functions. Otherwise, this may at least help someone else who runs into the issue.
The text was updated successfully, but these errors were encountered: