[win32] Overflow fix when using MultiByteToWideChar and WideCharToMultiByte.
Fix potential overflow in Texture::getCachedTextureInfo.
Merge pull request #5817 from dumganhar/develop

Fix potential overflow in Texture::getCachedTextureInfo and where uses MultiByteToWideChar and WideCharToMultiByte