DGLE-HQ / DGLE

Powerful independent cross-platform engine for 2D/3D games and visualizations. Young, strong and crazy!

Home Page:http://dgle.dronprogs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add assignment of "buffer size" parameter when buffer is succesfully assigned (in buffer-oriented methods)

phomm opened this issue · comments

commented

For example in
DGLE_RESULT DGLE_API CHDDFileIterator::FileName(char *pcName, uint &uiCharsCount)
succesfull part of method is
if (strlen(_acName) < uiCharsCount) { strcpy(pcName, _acName); return S_OK; }
adding
uiCharsCount = strlen(_acName) + 1;
makes it more convenient to interoperate