Exemplo n.º 1
0
OP_STATUS
OpScopeHttpLogger::UpdateHeader(Header &msg, void* ptr, UINT32 id, const char* ctx, const char* buf, size_t buf_len, Window* window, double time)
{
	uni_char tempbuffer[44]; // ARRAY OK 2008-08-18 jhoff

	msg.SetRequestID(id);
	msg.SetWindowID(window ? window->Id() : 0);
	uni_snprintf(tempbuffer, sizeof(tempbuffer), UNI_L("%f"), time);
	RETURN_IF_ERROR(msg.SetTime(tempbuffer));
	RETURN_IF_ERROR(msg.SetHeader(buf, buf_len));

	return OpStatus::OK;
}