mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-31 07:58:24 +02:00
GH #575: fixed compile error if POCO_WIN32_UTF8 is not defined
This commit is contained in:
parent
d864a9b7ea
commit
1db210e8b9
@ -135,10 +135,10 @@ std::string WinRegistryKey::getString(const std::string& name)
|
|||||||
throw NotFoundException(key(name));
|
throw NotFoundException(key(name));
|
||||||
if (size > 0)
|
if (size > 0)
|
||||||
{
|
{
|
||||||
Poco::Buffer<char> buffer(new char[size + 1]);
|
Poco::Buffer<char> buffer(size + 1);
|
||||||
RegQueryValueExA(_hKey, name.c_str(), NULL, NULL, (BYTE*) buffer.begin(), &size);
|
RegQueryValueExA(_hKey, name.c_str(), NULL, NULL, (BYTE*) buffer.begin(), &size);
|
||||||
buffer[size] = 0;
|
buffer[size] = 0;
|
||||||
std::string result(buffer);
|
std::string result(buffer.begin());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user