Changeset 11364 for OpenSceneGraph/trunk/src/osgDB/ConvertUTF.cpp
- Timestamp:
- 04/22/10 18:08:26 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgDB/ConvertUTF.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgDB/ConvertUTF.cpp
r11111 r11364 150 150 151 151 std::string sDest(destLen, '\0'); 152 destLen = WideCharToMultiByte(CP_ACP, 0, utf16.c_str(), sourceLength, 0, 0, 0, 0);152 destLen = WideCharToMultiByte(CP_ACP, 0, utf16.c_str(), sourceLength, &sDest[0], destLen, 0, 0); 153 153 if (destLen <= 0) 154 154 {
