mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Windows stub installer only - plugin code - Bug 850110 - Download server IP address is sometimes reported as a single digit. r=bbondy
This commit is contained in:
parent
bbd9251209
commit
db3f771f92
@ -136,10 +136,14 @@ void __stdcall InetStatusCallback(HINTERNET hInternet, DWORD_PTR dwContext,
|
||||
DWORD dwStatusInformationLength)
|
||||
{
|
||||
if (dwInternetStatus == INTERNET_STATUS_NAME_RESOLVED) {
|
||||
// The documentation states the IP address is a PCTSTR but it is actually a
|
||||
// PCSTR.
|
||||
// The documentation states the IP address is a PCTSTR but it is usually a
|
||||
// PCSTR and only sometimes a PCTSTR.
|
||||
StatsLock_AcquireExclusive();
|
||||
wsprintf(g_ServerIP, _T("%S"), lpvStatusInformation);
|
||||
if (wcslen(g_ServerIP) == 1)
|
||||
{
|
||||
wsprintf(g_ServerIP, _T("%s"), lpvStatusInformation);
|
||||
}
|
||||
StatsLock_ReleaseExclusive();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user