Added patch with workaround for Windows 3.1 apps which call LoadImage(LR_LOADFROMFILE) with a resource id.

This commit is contained in:
Sebastian Lackner
2016-05-21 15:07:54 +02:00
parent f10c1d3c42
commit 5d32e6fc71
4 changed files with 56 additions and 4 deletions

View File

@@ -3865,7 +3865,7 @@ diff --git a/dlls/wined3d/sampler.c b/dlls/wined3d/sampler.c
diff --git a/dlls/wined3d/shader.c b/dlls/wined3d/shader.c
--- a/dlls/wined3d/shader.c
+++ b/dlls/wined3d/shader.c
@@ -2311,7 +2311,11 @@
@@ -2323,7 +2323,11 @@
string_buffer_free(&buffer);
}
@@ -3877,7 +3877,7 @@ diff --git a/dlls/wined3d/shader.c b/dlls/wined3d/shader.c
{
HeapFree(GetProcessHeap(), 0, shader->output_signature.elements);
HeapFree(GetProcessHeap(), 0, shader->input_signature.elements);
@@ -2580,10 +2584,16 @@
@@ -2592,10 +2596,16 @@
if (!refcount)
{
@@ -3894,7 +3894,7 @@ diff --git a/dlls/wined3d/shader.c b/dlls/wined3d/shader.c
}
return refcount;
@@ -2890,7 +2900,11 @@
@@ -2902,7 +2912,11 @@
UINT i;
memset(args, 0, sizeof(*args)); /* FIXME: Make sure all bits are set. */