loadlibrary
loadlibrary copied to clipboard
InterlockedDecrement isn't atmonic
You probably want to use __sync_fetch_and_sub in https://github.com/taviso/loadlibrary/blob/d04fb4845488a8f80ce364ba7b34c9fe2d8a2c9d/peloader/winapi/ProcessThreads.c#L47
Cool project!
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 :-)