Skip to content

Commit 9e5145b

Browse files
author
Reini Urban
committed
Fix non-threaded Callback DESTROY #if identation
1 parent 9a6078a commit 9e5145b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Callback/Callback.xs

+4-4
Original file line numberDiff line numberDiff line change
@@ -665,15 +665,15 @@ PPCODE:
665665
//Code here to make a inter thread refcount to deal with ithreads cloning
666666
//to prevent a double free
667667
SVUVVar = SvRV(ptr_obj);
668-
#if defined(USE_ITHREADS)
668+
#if defined(USE_ITHREADS)
669669
mg = mg_findext(SVUVVar, PERL_MAGIC_ext,&vtbl_HeapBlock);
670670
refcnt = InterlockedDecrement((LONG *) mg->mg_ptr);
671671
if(refcnt == 0 ){ //if -1 or -2, means another thread will free it
672-
#endif
672+
#endif
673673
HeapFree(execHeap, 0, (LPVOID)SvUV(SVUVVar));
674-
#if defined(USE_ITHREADS)
674+
#if defined(USE_ITHREADS)
675675
}
676-
#endif
676+
#endif
677677

678678
MODULE = Win32::API::Callback PACKAGE = Win32::API::Callback::IATPatch
679679

0 commit comments

Comments
 (0)