Changeset 4537 for pjproject/trunk/pjlib/src/pj/unicode_win32.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/unicode_win32.c
r3553 r4537 24 24 25 25 26 PJ_DEF(wchar_t*) pj_ansi_to_unicode(const char *s, pj_size_t len,27 wchar_t *buf, pj_size_t buf_count)26 PJ_DEF(wchar_t*) pj_ansi_to_unicode(const char *s, int len, 27 wchar_t *buf, int buf_count) 28 28 { 29 29 PJ_ASSERT_RETURN(s && buf, NULL); … … 42 42 43 43 44 PJ_DEF(char*) pj_unicode_to_ansi( const wchar_t *wstr, pj_s ize_t len,45 char *buf, pj_size_t buf_size)44 PJ_DEF(char*) pj_unicode_to_ansi( const wchar_t *wstr, pj_ssize_t len, 45 char *buf, int buf_size) 46 46 { 47 47 PJ_ASSERT_RETURN(wstr && buf, NULL); 48 48 49 len = WideCharToMultiByte(CP_ACP, 0, wstr, len, buf, buf_size, NULL, NULL); 49 len = WideCharToMultiByte(CP_ACP, 0, wstr, (int)len, buf, buf_size, 50 NULL, NULL); 50 51 if (buf_size) { 51 52 if (len < buf_size)
Note: See TracChangeset
for help on using the changeset viewer.