void WIN_SetWMCaption(_THIS, const char *title, const char *icon)
{
#ifdef _WIN32_WCE
/* WinCE uses the UNICODE version */
LPWSTR lpszW = SDL_iconv_utf8_ucs2((char *)title);
SetWindowText(SDL_Window, lpszW);
SDL_free(lpszW);
#else
Uint16 *lpsz = SDL_iconv_utf8_ucs2(title);
size_t len = WideCharToMultiByte(CP_ACP, 0, lpsz, -1, NULL, 0, NULL, NULL);
char *cvt = SDL_stack_alloc(char, len + 1);
WideCharToMultiByte(CP_ACP, 0, lpsz, -1, cvt, len, NULL, NULL);
SetWindowText(SDL_Window, cvt);
SDL_stack_free(cvt);
SDL_free(lpsz);
#endif
}