Kaydet (Commit) aeb3853a authored tarafından Chris Sherlock's avatar Chris Sherlock

osl: (Win32) check allocated pipe succeeded, otherwise needs to fail

Change-Id: I0e508de4215d92700a9134e422a7b9370f387aea
Reviewed-on: https://gerrit.libreoffice.org/40300Reviewed-by: 's avatarChris Sherlock <chris.sherlock79@gmail.com>
Tested-by: 's avatarChris Sherlock <chris.sherlock79@gmail.com>
üst 7dc86ea8
......@@ -151,6 +151,11 @@ oslPipe SAL_CALL osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options
/* alloc memory */
pPipe = osl_createPipeImpl();
assert(pPipe); // if osl_createPipeImpl() cannot init. a new pipe, this is a failure
if (!pPipe)
return nullptr;
osl_atomic_increment(&(pPipe->m_Reference));
/* build system pipe name */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment