mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
fix cpm rc
This commit is contained in:
parent
6c8ec0ab4d
commit
e1a7caa2cf
1 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ namespace Dalamud.Support;
|
|||
/// <summary>Tracks the loaded process modules.</summary>
|
||||
internal static unsafe partial class CurrentProcessModules
|
||||
{
|
||||
private static Process? process;
|
||||
private static ProcessModuleCollection? moduleCollection;
|
||||
|
||||
/// <summary>Gets all the loaded modules, up to date.</summary>
|
||||
public static ProcessModuleCollection ModuleCollection
|
||||
|
|
@ -19,13 +19,13 @@ internal static unsafe partial class CurrentProcessModules
|
|||
if (t != 0)
|
||||
{
|
||||
t = 0;
|
||||
process = null;
|
||||
moduleCollection = null;
|
||||
Log.Verbose("{what}: Fetching fresh copy of current process modules.", nameof(CurrentProcessModules));
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
return (process ??= Process.GetCurrentProcess()).Modules;
|
||||
return moduleCollection ??= Process.GetCurrentProcess().Modules;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue