Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorvald Natvig <slicer@users.sourceforge.net>2010-02-09 18:54:57 +0300
committerThorvald Natvig <slicer@users.sourceforge.net>2010-02-09 18:54:57 +0300
commite2412af574ca37151aaa274bd1d97f08d7459ee5 (patch)
tree4c73c828434259fa2aa299c6508d1b2e23f196e2 /plugins/mumble_plugin_win32.h
parentb2cd5de424aee6ae89cd11725cf2ac898925f30b (diff)
Indent, changelog, submodule and language update1.2.2
Diffstat (limited to 'plugins/mumble_plugin_win32.h')
-rw-r--r--plugins/mumble_plugin_win32.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mumble_plugin_win32.h b/plugins/mumble_plugin_win32.h
index 30f69b884..2ede24305 100644
--- a/plugins/mumble_plugin_win32.h
+++ b/plugins/mumble_plugin_win32.h
@@ -106,19 +106,19 @@ T peekProc(VOID *base) {
static void inline u8(std::wstring &dst, const std::string &src) {
int len = MultiByteToWideChar(CP_UTF8, 0, src.data(), src.length(), NULL, 0);
-
+
wchar_t *wbuff = reinterpret_cast<wchar_t *>(_alloca(sizeof(wchar_t) * len));
MultiByteToWideChar(CP_UTF8, 0, src.data(), src.length(), wbuff, len);
-
+
dst.assign(wbuff, len);
}
static void inline u8(std::wstring &dst, const char *src, int srclen) {
int len = MultiByteToWideChar(CP_UTF8, 0, src, srclen, NULL, 0);
-
+
wchar_t *wbuff = reinterpret_cast<wchar_t *>(_alloca(sizeof(wchar_t) * len));
MultiByteToWideChar(CP_UTF8, 0, src, srclen, wbuff, len);
-
+
dst.assign(wbuff, len);
}