Skip to content

Commit

Permalink
pipe instead of path
Browse files Browse the repository at this point in the history
  • Loading branch information
sgraham committed Apr 29, 2024
1 parent a16001e commit 052c247
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/sentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ SENTRY_API void sentry_options_set_database_pathw_n(
* Returns the name of the named pipe where the Crashpad handler is listening
* for child connections if Crashpad is active backend.
*/
SENTRY_API const wchar_t *sentry_options_get_handler_ipc_pathw(
SENTRY_API const wchar_t *sentry_options_get_handler_ipc_pipew(
sentry_options_t *opts);

#endif
Expand Down
2 changes: 1 addition & 1 deletion src/backends/sentry_backend_crashpad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ crashpad_backend_startup(
/* asynchronous_start */ false, attachments);
#ifdef SENTRY_PLATFORM_WINDOWS
std::wstring pipe_name = data->client->GetHandlerIPCPipe();
const_cast<sentry_options_t *>(options)->handler_ipc_path
const_cast<sentry_options_t *>(options)->handler_ipc_pipe
= sentry__path_new(pipe_name.c_str());
#endif
sentry_free(minidump_url);
Expand Down
4 changes: 2 additions & 2 deletions src/sentry_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,9 @@ sentry_options_set_database_pathw(sentry_options_t *opts, const wchar_t *path)
#endif

const wchar_t *
sentry_options_get_handler_ipc_pathw(sentry_options_t *opts)
sentry_options_get_handler_ipc_pipew(sentry_options_t *opts)
{
return opts->handler_ipc_path ? opts->handler_ipc_path->path : NULL;
return opts->handler_ipc_pipe ? opts->handler_ipc_pipe->path : NULL;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/sentry_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ typedef struct sentry_options_s {

#ifdef SENTRY_PLATFORM_WINDOWS
/* Filled out after crashpad startup, only on Windows */
sentry_path_t* handler_ipc_path;
sentry_path_t* handler_ipc_pipe;
#endif

long user_consent;
Expand Down

0 comments on commit 052c247

Please sign in to comment.