You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deadlock-dotnet-sdk/Domain/ProcessInfo.cs
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -252,7 +252,7 @@ ref returnLength
252
252
#endif
253
253
// !WARNING may throw OutOfMemoryException; ReAllocHGlobal received a null pointer, but didn't check the error code
254
254
// the native call to LocalReAlloc (via Marshal.ReAllocHGlobal) sometimes returns a null pointer. This is a Legacy function. Why does .NET not use malloc/realloc?
// none of these helped debug that internal error...
@@ -282,7 +282,7 @@ ref returnLength
282
282
{
283
283
while((status=NtWow64QueryInformationProcess64(ProcessHandle.v,PROCESSINFOCLASS.ProcessBasicInformation,(void*)bufferPBI.DangerousGetHandle(),(uint)bufferPBI.ByteLength,&returnLength)).CodeisCode.STATUS_INFO_LENGTH_MISMATCH or Code.STATUS_BUFFER_TOO_SMALL or Code.STATUS_BUFFER_OVERFLOW)
while((status=NtQueryInformationProcess(ProcessHandle.v,PROCESSINFOCLASS.ProcessBasicInformation,(void*)bufferPBI.DangerousGetHandle(),(uint)bufferPBI.ByteLength,refreturnLength)).CodeisCode.STATUS_INFO_LENGTH_MISMATCH or Code.STATUS_BUFFER_TOO_SMALL or Code.STATUS_BUFFER_OVERFLOW)
returnobjectName=(null,newNullReferenceException(errFailedMsg+"Bad data was copied to the buffer. The string pointer is null."));
172
+
returnobjectName=(null,newNullReferenceException(errFailedMsg+"The object is unnamed -OR- bad data was copied to the buffer. The string pointer is null."));
0 commit comments