Skip to content

Commit

Permalink
Merge pull request #520 from bakercp/bugfix-NetworkInterface
Browse files Browse the repository at this point in the history
Fix for GH #518 - Missing Error.h and int.
  • Loading branch information
aleks-f committed Aug 21, 2014
2 parents fd0785e + 125310a commit e70b5e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Net/src/NetworkInterface.cpp
Expand Up @@ -28,8 +28,8 @@
#if defined(POCO_OS_FAMILY_WINDOWS)
#if defined(POCO_WIN32_UTF8)
#include "Poco/UnicodeConverter.h"
#include "Poco/Error.h"
#endif
#include "Poco/Error.h"
#include <iphlpapi.h>
#include <ipifcons.h>
#endif
Expand Down Expand Up @@ -1105,10 +1105,10 @@ NetworkInterface::Map NetworkInterface::map(bool ipOnly, bool upOnly)
Poco::UnicodeConverter::toUTF8(pAddress->Description, displayName);
#else
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;
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;
#endif

Expand Down

0 comments on commit e70b5e2

Please sign in to comment.