Commit 0e85325
authored
Use safe-struct chain info copy (#158)
This fixes use of multiple layers, which were failing to create an
instance if more than one layer was in use.
When we refactored the code to use safe-struct to avoid const-casting
in layer code we patched the incorrect chain info, modifying the
original user chain info rather than modifying the the safe-struct clone.
This happens to work for a single layer because the driver doesn't use
the chain, but it fails as soon as you have multiple layers because the
chain is never advanced and getProcAddr points at the wrong layer.1 parent 3b9fff0 commit 0e85325
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
787 | 791 | | |
788 | 792 | | |
789 | 793 | | |
| |||
874 | 878 | | |
875 | 879 | | |
876 | 880 | | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
877 | 884 | | |
878 | 885 | | |
879 | 886 | | |
| |||
0 commit comments