|
|
@ -1250,20 +1250,24 @@ void StatusCallback(void *param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
static char data[256] = {0}; |
|
|
|
static char data[256] = {0}; |
|
|
|
DWORD bytesRead; |
|
|
|
DWORD bytesRead; |
|
|
|
WinHttpSendRequest(
|
|
|
|
if( |
|
|
|
hRequest,
|
|
|
|
WinHttpSendRequest(
|
|
|
|
WINHTTP_NO_ADDITIONAL_HEADERS, |
|
|
|
hRequest,
|
|
|
|
0, |
|
|
|
WINHTTP_NO_ADDITIONAL_HEADERS, |
|
|
|
WINHTTP_NO_REQUEST_DATA, |
|
|
|
0, |
|
|
|
0, |
|
|
|
WINHTTP_NO_REQUEST_DATA, |
|
|
|
0, |
|
|
|
0, |
|
|
|
0 |
|
|
|
0, |
|
|
|
); |
|
|
|
0 |
|
|
|
WinHttpReceiveResponse(hRequest, 0); |
|
|
|
) |
|
|
|
WinHttpReadData(hRequest, data, 255, &bytesRead); |
|
|
|
&& WinHttpReceiveResponse(hRequest, 0) |
|
|
|
data[bytesRead] = 0; |
|
|
|
&& WinHttpReadData(hRequest, data, 255, &bytesRead) |
|
|
|
if(bytesRead) |
|
|
|
&& bytesRead |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
data[bytesRead] = 0; |
|
|
|
PostMessage(hwnd, WM_USER_SETSTATUSMSG, 0, (LPARAM) data); |
|
|
|
PostMessage(hwnd, WM_USER_SETSTATUSMSG, 0, (LPARAM) data); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|