Skip to content
This repository has been archived by the owner on Dec 11, 2017. It is now read-only.

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

Open
phomm opened this issue May 5, 2015 · 0 comments
Assignees

Comments

@phomm
Copy link
Member

phomm commented May 5, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants