use memcpy() instead of wxTmemcpy() as the latter is defined in wx/wxcrt.h which includes wx/string.h and hence can't be used from here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2895,7 +2895,7 @@ public:
|
|||||||
len = lenWanted - 1;
|
len = lenWanted - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxTmemcpy(m_buf.data(), buf, len + 1);
|
memcpy(m_buf.data(), buf, (len + 1)*sizeof(CharType));
|
||||||
}
|
}
|
||||||
//else: conversion failed, this can happen when trying to get Unicode
|
//else: conversion failed, this can happen when trying to get Unicode
|
||||||
// string contents into a char string
|
// string contents into a char string
|
||||||
|
Reference in New Issue
Block a user