| 100 | */ |
| 101 | |
| 102 | struct Window * |
| 103 | OpenShWindow(struct NewWindow *nw) |
| 104 | { |
| 105 | struct Window *win; |
| 106 | ULONG idcmpflags; |
| 107 | |
| 108 | if (!HackPort) /* Sanity check */ |
| 109 | return (struct Window *) 0; |
| 110 | |
| 111 | idcmpflags = nw->IDCMPFlags; |
| 112 | nw->IDCMPFlags = 0; |
| 113 | if (!(win = OpenWindow((void *) nw))) { |
| 114 | nw->IDCMPFlags = idcmpflags; |
| 115 | return (struct Window *) 0; |
| 116 | } |
| 117 | |
| 118 | nw->IDCMPFlags = idcmpflags; |
| 119 | win->UserPort = HackPort; |
| 120 | ModifyIDCMP(win, idcmpflags); |
| 121 | return win; |
| 122 | } |
| 123 | |
| 124 | /* |
| 125 | * Close a window that shared the HackPort IDCMP port. |
no outgoing calls
no test coverage detected