mirror of
https://github.com/decompals/wibo.git
synced 2025-10-17 23:55:11 +00:00
add interlockedcompareexchange
This commit is contained in:
parent
8bd112f0e4
commit
57cb392654
@ -87,6 +87,10 @@ namespace kernel32 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LONG InterlockedCompareExchange(volatile LONG* destination, LONG exchange, LONG comperand){
|
||||||
|
return __sync_val_compare_and_swap(destination, comperand, exchange);
|
||||||
|
}
|
||||||
|
|
||||||
int64_t getFileSize(void* hFile) {
|
int64_t getFileSize(void* hFile) {
|
||||||
FILE *fp = files::fpFromHandle(hFile);
|
FILE *fp = files::fpFromHandle(hFile);
|
||||||
struct stat64 st;
|
struct stat64 st;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user