Avoid Advise connection id reuse and validate arguments


Use a monotonically increasing connection id in QAxServerBase::Advise()
to prevent connection identifier reuse after Unadvise().

Also validate input pointers and return E_POINTER for invalid COM calls.

Change-Id: I06eed3f3b12481cce710c3e8a7e358d41ca7497d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commitf239a72cc0785fc6a22ca496fc74b79e00b02b12
parent9d5703a15e2a8f2b19c8949db668b779fe6b26ba
authorPavel Dubsky <pavel.dubsky@qt.io>
committerPavel Dubsky <pavel.dubsky@qt.io>
commit timeTue, 3 Mar 2026 14:24:17 +0100