mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
Fix for GH #518 - Missing Error.h and int.
This commit is contained in:
parent
fd0785ea03
commit
125310a26a
@ -28,8 +28,8 @@
|
|||||||
#if defined(POCO_OS_FAMILY_WINDOWS)
|
#if defined(POCO_OS_FAMILY_WINDOWS)
|
||||||
#if defined(POCO_WIN32_UTF8)
|
#if defined(POCO_WIN32_UTF8)
|
||||||
#include "Poco/UnicodeConverter.h"
|
#include "Poco/UnicodeConverter.h"
|
||||||
#include "Poco/Error.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
#include "Poco/Error.h"
|
||||||
#include <iphlpapi.h>
|
#include <iphlpapi.h>
|
||||||
#include <ipifcons.h>
|
#include <ipifcons.h>
|
||||||
#endif
|
#endif
|
||||||
@ -1105,10 +1105,10 @@ NetworkInterface::Map NetworkInterface::map(bool ipOnly, bool upOnly)
|
|||||||
Poco::UnicodeConverter::toUTF8(pAddress->Description, displayName);
|
Poco::UnicodeConverter::toUTF8(pAddress->Description, displayName);
|
||||||
#else
|
#else
|
||||||
char nameBuffer[1024];
|
char nameBuffer[1024];
|
||||||
rc = WideCharToMultiByte(CP_ACP, 0, pAddress->FriendlyName, -1, nameBuffer, sizeof(nameBuffer), NULL, NULL);
|
int rc = WideCharToMultiByte(CP_ACP, 0, pAddress->FriendlyName, -1, nameBuffer, sizeof(nameBuffer), NULL, NULL);
|
||||||
if (rc) name = nameBuffer;
|
if (rc) name = nameBuffer;
|
||||||
char displayNameBuffer[1024];
|
char displayNameBuffer[1024];
|
||||||
int rc = WideCharToMultiByte(CP_ACP, 0, pAddress->Description, -1, displayNameBuffer, sizeof(displayNameBuffer), NULL, NULL);
|
rc = WideCharToMultiByte(CP_ACP, 0, pAddress->Description, -1, displayNameBuffer, sizeof(displayNameBuffer), NULL, NULL);
|
||||||
if (rc) displayName = displayNameBuffer;
|
if (rc) displayName = displayNameBuffer;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user