Skip to content

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-26M. The issue was that: WOLAPI COM object's missing ProgID registry entry causes null pointer dereference in wcstombs during system lookup.

  • Added safe_wcstombs function to wchar_compat.h to provide a null-pointer-safe wrapper for wcstombs.
  • Updated WideCharToMultiByte macro to use safe_wcstombs for improved robustness when converting wide characters to multi-byte strings.
  • Implemented ensureWOLAPIProgIDRegistration function in wolInit.cpp to explicitly register WOLAPI COM object ProgIDs (WOLAPI.Chat).
  • Called ensureWOLAPIProgIDRegistration before COM operations in checkInstalledWolapiVersion to prevent crashes on Windows versions that strictly validate COM registry entries.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 8425323

Not quite right? Click here to continue debugging with Seer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant