Skip to content

Commit

Permalink
Fix nullable warnings on windows (dotnet#32515)
Browse files Browse the repository at this point in the history
  • Loading branch information
safern authored Feb 19, 2020
1 parent 35ce7fb commit e771456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ internal static PerformanceCounterLib GetPerformanceCounterLib(string machineNam
return PerformanceCounterLib.s_libraryTable.GetOrAdd((machineName, lcidString), (key) => new PerformanceCounterLib(key.machineName, key.lcidString));
}

internal byte[] GetPerformanceData(string item)
internal byte[]? GetPerformanceData(string item)
{
if (_performanceMonitor == null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ private static ProcessInfo[] GetProcessInfos(PerformanceCounterLib library)
{
try
{
byte[] dataPtr = library.GetPerformanceData(PerfCounterQueryString);
byte[]? dataPtr = library.GetPerformanceData(PerfCounterQueryString);
processInfos = GetProcessInfos(library, ProcessPerfCounterId, ThreadPerfCounterId, dataPtr);
}
catch (Exception e)
Expand Down

0 comments on commit e771456

Please sign in to comment.