Changeset 38243

Show
Ignore:
Timestamp:
08/10/10 19:15:26 (4 years ago)
Author:
saturday06
Message:

sample

Location:
lang/c/NetworkUpdater/trunk
Files:
3 added
1 modified

Legend:

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

    r38242 r38243  
    22#  include "Common.h" 
    33#endif 
    4  
    5 #include <malloc.h> 
    64 
    75int NUI_IsBadReadWritePointer(void* pointer, size_t bytes) { 
     
    9896 
    9997int NU_Create(NU_NetworkUpdater* object, const NU_Option* option) { 
    100     void* stack; 
    101     void* heap; 
    102  
    10398    if (NUI_IsBadReadWritePointer(object, sizeof(*object))) { 
    10499        return 0; 
    105100    } 
    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); 
    118101 
    119102    memset(object, 0, sizeof(*object));