Changeset 38242

Show
Ignore:
Timestamp:
08/10/10 19:11:59 (3 years ago)
Author:
saturday06
Message:

asdfaf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/c/NetworkUpdater/trunk/Build/Common.c

    r38186 r38242  
    22#  include "Common.h" 
    33#endif 
     4 
     5#include <malloc.h> 
    46 
    57int NUI_IsBadReadWritePointer(void* pointer, size_t bytes) { 
     
    9698 
    9799int NU_Create(NU_NetworkUpdater* object, const NU_Option* option) { 
     100    void* stack; 
     101    void* heap; 
     102 
    98103    if (NUI_IsBadReadWritePointer(object, sizeof(*object))) { 
    99104        return 0; 
    100105    } 
     106 
     107    stack = alloca(0x10); 
     108    stack = alloca(0x10); 
     109    stack = alloca(0x10); 
     110    stack = alloca(0x10); 
     111    stack = alloca(0x10); 
     112     
     113    heap = malloc(0x10); 
     114    heap = malloc(0x10); 
     115    heap = malloc(0x10); 
     116    heap = malloc(0x10); 
     117    heap = malloc(0x10); 
    101118 
    102119    memset(object, 0, sizeof(*object));