wined3d: Remove superfluous casts of void pointers to other pointer types.
This commit is contained in:
parent
b700e63d55
commit
0326da9dd5
|
@ -65,7 +65,7 @@ void print_glsl_info_log(WineD3D_GL_Info *gl_info, GLhandleARB obj) {
|
|||
* that if there are errors. */
|
||||
if (infologLength > 1)
|
||||
{
|
||||
infoLog = (char *)HeapAlloc(GetProcessHeap(), 0, infologLength);
|
||||
infoLog = HeapAlloc(GetProcessHeap(), 0, infologLength);
|
||||
GL_EXTCALL(glGetInfoLogARB(obj, infologLength, NULL, infoLog));
|
||||
FIXME("Error received from GLSL shader #%u: %s\n", obj, debugstr_a(infoLog));
|
||||
HeapFree(GetProcessHeap(), 0, infoLog);
|
||||
|
|
|
@ -1871,7 +1871,7 @@ static BOOL palette9_changed(IWineD3DSurfaceImpl *This) {
|
|||
return FALSE;
|
||||
}
|
||||
} else {
|
||||
This->palette9 = (PALETTEENTRY *) HeapAlloc(GetProcessHeap(), 0, sizeof(PALETTEENTRY) * 256);
|
||||
This->palette9 = HeapAlloc(GetProcessHeap(), 0, sizeof(PALETTEENTRY) * 256);
|
||||
}
|
||||
memcpy(This->palette9, &device->palettes[device->currentPalette], sizeof(PALETTEENTRY) * 256);
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in New Issue