opendx-4.4.4-null.patch 584 B

123456789101112131415
  1. diff -up dx-4.4.4/src/exec/libdx/xwindow.c.null dx-4.4.4/src/exec/libdx/xwindow.c
  2. --- dx-4.4.4/src/exec/libdx/xwindow.c.null 2000-06-12 07:45:40.000000000 +0200
  3. +++ dx-4.4.4/src/exec/libdx/xwindow.c 2009-11-08 15:10:13.000000000 +0100
  4. @@ -29,7 +29,9 @@ Error
  5. DXRegisterWindowHandlerWithCheckProc(Error (*proc) (int, Pointer),
  6. int (*check)(int, Pointer), Display *d, Pointer arg)
  7. {
  8. - int fd = ConnectionNumber(d);
  9. + int fd;
  10. + if (d) fd = ConnectionNumber(d);
  11. + else return ERROR;
  12. if (! DXRegisterInputHandlerWithCheckProc(proc, check, fd, arg))
  13. return ERROR;