Changeset 38242
- Timestamp:
- 08/10/10 19:11:59 (3 years ago)
- Files:
-
- 1 modified
-
lang/c/NetworkUpdater/trunk/Build/Common.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/c/NetworkUpdater/trunk/Build/Common.c
r38186 r38242 2 2 # include "Common.h" 3 3 #endif 4 5 #include <malloc.h> 4 6 5 7 int NUI_IsBadReadWritePointer(void* pointer, size_t bytes) { … … 96 98 97 99 int NU_Create(NU_NetworkUpdater* object, const NU_Option* option) { 100 void* stack; 101 void* heap; 102 98 103 if (NUI_IsBadReadWritePointer(object, sizeof(*object))) { 99 104 return 0; 100 105 } 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); 101 118 102 119 memset(object, 0, sizeof(*object));
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)