--- np2/x11/commng.c 2003/11/17 13:41:43 1.2 +++ np2/x11/commng.c 2004/01/13 16:28:18 1.4 @@ -2,6 +2,7 @@ #include "np2.h" #include "commng.h" +#include "cmjasts.h" // ---- non connect @@ -80,6 +81,13 @@ commng_create(UINT device) cfg = &np2oscfg.mpu; break; + case COMCREATE_PRINTER: + cfg = NULL; + if (np2oscfg.jastsnd) { + ret = cmjasts_create(); + } + break; + default: cfg = NULL; break; @@ -102,7 +110,7 @@ void commng_destroy(COMMNG hdl) { - if (hdl && (hdl != &com_nc)) { + if (hdl) { hdl->release(hdl); } }