Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
2e3e331
[release/7.0-rc2] Use determinism instead of timing in cancellation t…
github-actions[bot] Sep 15, 2022
393e1ab
Bump Intellisense RC2 package version again (#75698)
carlossanlop Sep 15, 2022
f0eb5ce
Implement an AppContext compatibility switch re-enabling reflection f…
eiriktsarpalis Sep 16, 2022
fdca698
[release/7.0-rc2] Handle a null szPname field (#75716)
github-actions[bot] Sep 16, 2022
6cf6e48
[wasm] Use newer helix images with updated v8 (#75726)
github-actions[bot] Sep 16, 2022
e0a65e0
Fix edge cases of getting attribute data from syntax (#75728)
github-actions[bot] Sep 16, 2022
e869f44
[release/7.0-rc2] Fix wasm template README (#75766)
github-actions[bot] Sep 16, 2022
b9d050a
Fix Configuration.Binder for collection properties with no setters (#…
github-actions[bot] Sep 16, 2022
5634242
[release/7.0-rc2] Ensure Max/Min for floating-point on x86/x64 are no…
github-actions[bot] Sep 16, 2022
b23dc07
[release/7.0-rc2] Update dependencies from dotnet/emsdk (#75707)
dotnet-maestro[bot] Sep 19, 2022
27396a2
Do not request type layout for RuntimeDetermined types (#75789)
github-actions[bot] Sep 19, 2022
ec82570
Bump 7.0 intellisense package version (WinForms docs update) (#75786)
carlossanlop Sep 19, 2022
39fce88
fix behavior of JMC (#75833)
github-actions[bot] Sep 19, 2022
a66c066
hide interop delegates from intelisense (#75825)
github-actions[bot] Sep 19, 2022
3056135
* fix missing managed stack trace on managed exceptions marshaled to …
pavelsavara Sep 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[release/7.0-rc2] Handle a null szPname field (#75716)
* Handle a null szPname field

* Always clear the span to ensure we have a null terminator in case the string is short

* Use null conditional access

* Add call to test to test scenario

* Update src/libraries/System.Speech/tests/SynthesizeRecognizeTests.cs

Co-authored-by: Jeremy Koritzinsky <[email protected]>
Co-authored-by: Jeremy Koritzinsky <[email protected]>
  • Loading branch information
3 people authored Sep 16, 2022
commit fdca69896c73c5ee5ba9b1208a7396f1c2cff807
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ public Native(WAVEOUTCAPS managed)
wMid = managed.wMid;
wPid = managed.wPid;
vDriverVersion = managed.vDriverVersion;
managed.szPname.CopyTo(MemoryMarshal.CreateSpan(ref szPname[0], szPnameLength));
Span<char> szPnameSpan = MemoryMarshal.CreateSpan(ref szPname[0], szPnameLength);
szPnameSpan.Clear();
managed.szPname?.CopyTo(szPnameSpan);
dwFormats = managed.dwFormats;
wChannels = managed.wChannels;
wReserved1 = managed.wReserved1;
Expand Down