mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-10 19:13:29 +00:00
Fix crash when a WM_DDE_INITIATE is received from a native ANSI window
This commit is contained in:
parent
31116ff424
commit
095078ad04
@ -33,7 +33,7 @@ std::string get_atom_string(ATOM atom, bool isUnicode)
|
||||
result = base::to_utf8(std::wstring(&buf[0]));
|
||||
}
|
||||
else {
|
||||
std::vector<char> buf;
|
||||
std::vector<char> buf(256, 0);
|
||||
UINT chars = GlobalGetAtomNameA(atom, &buf[0], buf.size());
|
||||
result = &buf[0];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user