Changeset 82315 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Dec 2, 2019 11:54:14 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/clipboard.cpp
r82287 r82315 246 246 { 247 247 rc = VbglR3ClipboardConnectEx(&g_Ctx.CmdCtx); 248 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS249 if (RT_SUCCESS(rc))250 rc = ShClTransferCtxInit(&g_Ctx.TransferCtx);251 #endif252 248 if (RT_FAILURE(rc)) 253 249 ShClX11ThreadStop(&g_Ctx.X11); … … 517 513 } 518 514 515 static int init(struct VBCLSERVICE **pSelf) 516 { 517 RT_NOREF(pSelf); 518 519 int rc; 520 521 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 522 rc = ShClTransferCtxInit(&g_Ctx.TransferCtx); 523 #else 524 rc = VINF_SUCCESS; 525 #endif 526 527 LogFlowFuncLeaveRC(rc); 528 return rc; 529 } 530 519 531 static int run(struct VBCLSERVICE **ppInterface, bool fDaemonised) 520 532 { … … 556 568 ShClTransferCtxDestroy(&g_Ctx.TransferCtx); 557 569 #endif 558 559 VbglR3Term();560 570 } 561 571 … … 564 574 getName, 565 575 getPidFilePath, 566 VBClServiceDefaultHandler, /* init */576 init, 567 577 run, 568 578 cleanup
Note:
See TracChangeset
for help on using the changeset viewer.