int DEFAULT_CC graphics_end_update(struct userChannel* u) { struct xrdp_painter* p; p = (struct xrdp_painter*)(u->painter); xrdp_painter_end_update(p); xrdp_painter_delete(p); u->painter = 0; return 0; }
int DEFAULT_CC server_end_update(struct xrdp_mod* mod) { struct xrdp_painter* p = (struct xrdp_painter *)NULL; p = (struct xrdp_painter*)(mod->painter); xrdp_painter_end_update(p); xrdp_painter_delete(p); mod->painter = 0; return 0; }