Module: wine
Branch: master
Commit: 0c9ce583bcf78e531af92f351557e767892c7616
URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0c9ce583bcf78e531af92f351…
Author: Marcus Meissner <marcus(a)jet.franken.de>
Date: Sun Sep 29 12:55:11 2013 +0200
wined3d: Fixed sizeof() to HeapAlloc (Coverity).
---
dlls/wined3d/arb_program_shader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 631c2ea..282c2d0 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -3988,7 +3988,7 @@ static DWORD find_input_signature(struct shader_arb_priv *priv,
const struct win
TRACE("Found existing signature %u\n", found_sig->idx);
return found_sig->idx;
}
- found_sig = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*sig));
+ found_sig = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*found_sig));
found_sig->sig = clone_sig(sig);
found_sig->idx = priv->ps_sig_number++;
TRACE("New signature stored and assigned number %u\n", found_sig->idx);