DGLE-HQ / DGLE

Powerful independent cross-platform engine for 2D/3D games and visualizations. Young, strong and crazy!
http://dgle.dronprogs.org
GNU Lesser General Public License v3.0
162 stars 39 forks source link

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

Open phomm opened 9 years ago

phomm commented 9 years ago

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