http://bugs.winehq.org/show_bug.cgi?id=15033
Roy Marples roy@marples.name changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |roy@marples.name
--- Comment #10 from Roy Marples roy@marples.name 2008-09-03 17:54:21 --- + char pgmbuffer[SHADER_PGMSIZE];
- buffer.buffer = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, SHADER_PGMSIZE); + buffer.buffer = (char *)&pgmbuffer;
That looks wrong
+ buffer.buffer = pgmbuffer;
Should be right
char *foo; char foo[5];
The only difference between the two is that the former requires a malloc and the latter is of a fixed size.