|
|
| version 1.4, 2003/12/08 00:55:34 | version 1.6, 2004/04/08 13:08:23 |
|---|---|
| Line 11 | Line 11 |
| #include "viewasm.h" | #include "viewasm.h" |
| #include "viewsnd.h" | #include "viewsnd.h" |
| #include "cpucore.h" | #include "cpucore.h" |
| #include "memory.h" | |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "bios.h" | #include "bios.h" |
| Line 53 void viewcmn_putcaption(NP2VIEW_T *view) | Line 52 void viewcmn_putcaption(NP2VIEW_T *view) |
| BOOL viewcmn_alloc(VIEWMEMBUF *buf, DWORD size) { | BOOL viewcmn_alloc(VIEWMEMBUF *buf, DWORD size) { |
| if (buf->type == ALOOCTYPE_ERROR) { | if (buf->type == ALLOCTYPE_ERROR) { |
| return(FAILURE); | return(FAILURE); |
| } | } |
| if (buf->size < size) { | if (buf->size < size) { |
| Line 63 BOOL viewcmn_alloc(VIEWMEMBUF *buf, DWOR | Line 62 BOOL viewcmn_alloc(VIEWMEMBUF *buf, DWOR |
| ZeroMemory(buf, sizeof(VIEWMEMBUF)); | ZeroMemory(buf, sizeof(VIEWMEMBUF)); |
| buf->ptr = malloc(size); | buf->ptr = malloc(size); |
| if (!buf->ptr) { | if (!buf->ptr) { |
| buf->type = ALOOCTYPE_ERROR; | buf->type = ALLOCTYPE_ERROR; |
| return(FAILURE); | return(FAILURE); |
| } | } |
| buf->size = size; | buf->size = size; |