mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Get rid of pnUtW32Addr and make IP strings char*s.
IP addresses don't need to be unicode. pnUtAddr is still around until we replace all NetAddress uses with plNetAddress (they are typedef'ed to each other right now).
This commit is contained in:
@ -609,7 +609,7 @@ static size_t CurlCallback(void *buffer, size_t size, size_t nmemb, void *)
|
||||
//============================================================================
|
||||
static void StatusCallback(void *)
|
||||
{
|
||||
char *serverUrl = hsWStringToString(GetServerStatusUrl());
|
||||
const char *serverUrl = GetServerStatusUrl();
|
||||
|
||||
CURL * hCurl = curl_easy_init();
|
||||
curl_easy_setopt(hCurl, CURLOPT_ERRORBUFFER, s_curlError);
|
||||
@ -631,7 +631,6 @@ static void StatusCallback(void *)
|
||||
}
|
||||
|
||||
curl_easy_cleanup(hCurl);
|
||||
delete [] serverUrl;
|
||||
|
||||
s_statusEvent.Signal();
|
||||
}
|
||||
|
@ -226,7 +226,9 @@ static void FileSrvIpAddressCallback (
|
||||
}
|
||||
|
||||
// Start connecting to the server
|
||||
NetCliFileStartConnect(&addr, 1, true);
|
||||
const char* caddr = hsWStringToString(addr);
|
||||
NetCliFileStartConnect(&caddr, 1, true);
|
||||
delete[] caddr;
|
||||
|
||||
PathGetProgramDirectory(s_newPatcherFile, arrsize(s_newPatcherFile));
|
||||
GetTempFileNameW(s_newPatcherFile, kPatcherExeFilename, 0, s_newPatcherFile);
|
||||
@ -245,7 +247,7 @@ static bool SelfPatcherProc (bool * abort, plLauncherInfo *info) {
|
||||
NetClientInitialize();
|
||||
NetClientSetErrorHandler(NetErrorHandler);
|
||||
|
||||
const wchar_t ** addrs;
|
||||
const char** addrs;
|
||||
unsigned count;
|
||||
|
||||
count = GetGateKeeperSrvHostnames(&addrs);
|
||||
|
Reference in New Issue
Block a user