Commit d0a4f70
committed
HACK: windows: Work around broken
Wine has a bug where calling `AssocQueryStringW()` with a buffer doesn't
actually update `line_len` to the actual number of bytes returned,
resulting in `webbrowser` failing on seeing a bunch of unexpected `nul`
bytes in the array:
Error { kind: InvalidInput, message: "nul byte found in provided data" }
This is reported and fixed upstream via:
https://bugs.winehq.org/show_bug.cgi?id=59402
https://gitlab.winehq.org/wine/wine/-/merge_requests/10072
I still need to write tests to get it merged, and even then it might
take a while to trickle down into releases and ultimately Steam Proton.
Hence have this ugly workaround to catch cases where `nul` characters
end up in the output and reduce the string length by hand.AssocQueryStringW() not returning actual string length1 parent 94baf04 commit d0a4f70
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
60 | 74 | | |
61 | | - | |
| 75 | + | |
62 | 76 | | |
63 | 77 | | |
64 | 78 | | |
| |||
0 commit comments