Skip to content

Commit b0ba046

Browse files
Move guard to a safer position
1 parent d52c4f1 commit b0ba046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracer/src/Datadog.Tracer.Native/iast/dataflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,10 @@ HRESULT Dataflow::AppDomainShutdown(AppDomainID appDomainId)
384384

385385
HRESULT Dataflow::ModuleLoaded(ModuleID moduleId, ModuleInfo** pModuleInfo)
386386
{
387+
CSGUARD(_cs);
387388
// Retrieve all already modules at once to mimic initialization from creation behavior
388389
if (_preLoadedModuleIds.size() > 0)
389390
{
390-
CSGUARD(_cs);
391391
for (auto const& id : _preLoadedModuleIds)
392392
{
393393
GetModuleInfo(id);

0 commit comments

Comments
 (0)