/* Add all icons to the image list */
for (i = StartResource; i <= EndResource; i++)
{
- hIcon = (HBITMAP)LoadImageW(hInstance,
+ hIcon = (HICON)LoadImageW(hInstance,
MAKEINTRESOURCEW(i),
IMAGE_ICON,
Width,
length = wcslen(lpSrcStr) + 1;
- *lpDstStr = (LPWSTR)HeapAlloc(GetProcessHeap(), 0, length);
+ *lpDstStr = (LPSTR)HeapAlloc(GetProcessHeap(), 0, length);
if (*lpDstStr)
{
ret = WideCharToMultiByte(CP_ACP,