diff --git a/tools/assimp_view/MessageProc.cpp b/tools/assimp_view/MessageProc.cpp index 74c94d7d6..4595c58cd 100644 --- a/tools/assimp_view/MessageProc.cpp +++ b/tools/assimp_view/MessageProc.cpp @@ -1537,7 +1537,7 @@ INT_PTR CALLBACK MessageProc(HWND hwndDlg,UINT uMsg, SetTextColor(pcStruct->hDC,RGB(0xFF-r,0xFF-g,0xFF-b)); SetBkMode(pcStruct->hDC,TRANSPARENT); - TextOut(pcStruct->hDC,4,1,szText,strlen(szText)); + TextOut(pcStruct->hDC,4,1,szText, static_cast(strlen(szText))); bDraw = true; } else if(IDC_LCOLOR2 == pcStruct->CtlID) @@ -1568,7 +1568,7 @@ INT_PTR CALLBACK MessageProc(HWND hwndDlg,UINT uMsg, SetTextColor(pcStruct->hDC,RGB(0xFF-r,0xFF-g,0xFF-b)); SetBkMode(pcStruct->hDC,TRANSPARENT); - TextOut(pcStruct->hDC,4,1,szText,strlen(szText)); + TextOut(pcStruct->hDC,4,1,szText, static_cast(strlen(szText))); bDraw = true; } else if(IDC_LCOLOR3 == pcStruct->CtlID) @@ -1597,7 +1597,7 @@ INT_PTR CALLBACK MessageProc(HWND hwndDlg,UINT uMsg, SetTextColor(pcStruct->hDC,RGB(0xFF-r,0xFF-g,0xFF-b)); SetBkMode(pcStruct->hDC,TRANSPARENT); - TextOut(pcStruct->hDC,4,1,szText,strlen(szText)); + TextOut(pcStruct->hDC,4,1,szText,static_cast(strlen(szText))); bDraw = true; } // draw the black border around the rects