Displaying 1 result from an estimated 1 matches for "nrofentries".
Did you mean:
nr_entries
2008 Apr 22
1
HeapAlloc vs. malloc. How does HeapAlloc work?
...defs + num_include_def, 0, sizeof(include_defs[0]) * 256);
??? }
??? include_defs[num_include_def].name = strcpy(HeapAlloc(GetProcessHeap(), 0, strlen(file) + 1), file);
??? include_defs[num_include_def].value = val;
??? include_defs[num_include_def].vector = NULL;
??? include_defs[num_include_def].nrofentries = 0;
Nobody is checking NULL value of include_defs and later there is strcpy() with HeapAlloc as parameter.
In dlls/winspool.drv/info.c function 'static LPDEVMODEA DEVMODEdupWtoA(HANDLE heap, const DEVMODEW *dmW)' line 1709
???? if (pName) {
???????? len = MultiByteToWideChar(CP_ACP, 0,...