diff --git a/include/sentry.h b/include/sentry.h index ad6e70f81..1937d99c0 100644 --- a/include/sentry.h +++ b/include/sentry.h @@ -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 diff --git a/src/backends/sentry_backend_crashpad.cpp b/src/backends/sentry_backend_crashpad.cpp index d8fd59ab2..b06e71b81 100644 --- a/src/backends/sentry_backend_crashpad.cpp +++ b/src/backends/sentry_backend_crashpad.cpp @@ -357,7 +357,7 @@ crashpad_backend_startup( /* asynchronous_start */ false, attachments); #ifdef SENTRY_PLATFORM_WINDOWS std::wstring pipe_name = data->client->GetHandlerIPCPipe(); - const_cast(options)->handler_ipc_path + const_cast(options)->handler_ipc_pipe = sentry__path_new(pipe_name.c_str()); #endif sentry_free(minidump_url); diff --git a/src/sentry_options.c b/src/sentry_options.c index 3ba5b78c6..026a5cda2 100644 --- a/src/sentry_options.c +++ b/src/sentry_options.c @@ -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; } /** diff --git a/src/sentry_options.h b/src/sentry_options.h index bd523b902..31bcdf044 100644 --- a/src/sentry_options.h +++ b/src/sentry_options.h @@ -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;