loadlibrary icon indicating copy to clipboard operation
loadlibrary copied to clipboard

InterlockedDecrement isn't atmonic

Open nikital opened this issue 8 years ago • 1 comments

You probably want to use __sync_fetch_and_sub in https://github.com/taviso/loadlibrary/blob/d04fb4845488a8f80ce364ba7b34c9fe2d8a2c9d/peloader/winapi/ProcessThreads.c#L47

Cool project!

nikital avatar May 24 '17 06:05 nikital

Hah, thanks, I don't currently support threads so I wasn't worried about it doing it properly just yet!

You're right, I should just use those builtins and avoid a future headache :-)

taviso avatar May 25 '17 03:05 taviso