Re: hhctrl: Add beginnings of the Help viewer
1 Aug
2005
1 Aug
'05
3:11 a.m.
"James Hawkins" <truiken(a)gmail.com> wrote:
Changelog * Add beginnings of the Help viewer.
+ count = MultiByteToWideChar(CP_ACP, 0, ansi, -1, NULL, 0); + unicode = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, count * sizeof(WCHAR)); + MultiByteToWideChar(CP_ACP, 0, ansi, -1, unicode, count);
If you know that you are going to fill the whole buffer with something why do you use HEAP_ZERO_MEMORY? Please avoid using HEAP_ZERO_MEMORY, it's almost always a bad practice. -- Dmitry.
7435
Age (days ago)
7435
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov