summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2007-09-21 20:38:03 +0000
committerjsorg71 <jsorg71>2007-09-21 20:38:03 +0000
commit7a7b0c53fafc6a856ab496f7a2e1376a918cd113 (patch)
tree4a3c0faecab1cf6f9adeca1aff0026637045516e
parentf0a2f53e300114575535de4f3057e022ac925ec8 (diff)
downloadxrdp-proprietary-7a7b0c53fafc6a856ab496f7a2e1376a918cd113.tar.gz
xrdp-proprietary-7a7b0c53fafc6a856ab496f7a2e1376a918cd113.zip
removed some warnings about wchar_t
-rw-r--r--common/os_calls.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index 65cc6206..ac29c153 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -1078,14 +1078,20 @@ g_pos(char* str, const char* to_find)
int APP_CC
g_mbstowcs(twchar* dest, const char* src, int n)
{
- return mbstowcs(dest, src, n);
+ wchar_t* ldest;
+
+ ldest = (wchar_t*)dest;
+ return mbstowcs(ldest, src, n);
}
/*****************************************************************************/
int APP_CC
g_wcstombs(char* dest, const twchar* src, int n)
{
- return wcstombs(dest, src, n);
+ const wchar_t* lsrc;
+
+ lsrc = (const wchar_t*)src;
+ return wcstombs(dest, lsrc, n);
}
/*****************************************************************************/