Michael Stefaniuc : wined3d:
Remove superfluous casts of void pointers to other pointer types.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 27 09:11:27 CDT 2007
Module: wine
Branch: master
Commit: 0326da9dd500d47befd44f17a37b02e46a162cc5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0326da9dd500d47befd44f17a37b02e46a162cc5
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Jun 27 00:13:32 2007 +0200
wined3d: Remove superfluous casts of void pointers to other pointer types.
---
dlls/wined3d/glsl_shader.c | 2 +-
dlls/wined3d/surface.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 4ab7702..11ede05 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -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);
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index c8e961a..027f8f1 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -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;
More information about the wine-cvs
mailing list