if(NULL != wClass) { if(NULL == inWindow) { retval = FindWindow(wClass, NULL); } else { LPTSTR wWindow = a2w_malloc(inWindow, -1, NULL); if(NULL != wWindow) { retval = FindWindow(wClass, wWindow); free(wWindow); } }
LPTSTR wWindow = a2w_malloc(inWindow, -1, NULL);  retval = FindWindow(wClass, NULL);  if (!wWindow) free(wWindow);  if (!wClass)
MOZCE_SHUNT_API HWND mozce_FindWindowA(LPCSTR inClass, LPCSTR inWindow){    MOZCE_PRECHECK#ifdef DEBUG    mozce_printf("mozce_FindWindowA called\n");#endif    HWND retval = NULL;    LPTSTR wClass = a2w_malloc(inClass, -1, NULL);    if(NULL != wClass)    {        if(NULL == inWindow)        {            retval = FindWindow(wClass, NULL);        }        else        {            LPTSTR wWindow = a2w_malloc(inWindow, -1, NULL);            if(NULL != wWindow)            {                retval = FindWindow(wClass, wWindow);                free(wWindow);            }        }        free(wClass);    }    return retval;}