mirror of
				https://git.wownero.com/wownero/RandomWOW.git
				synced 2024-08-15 00:23:14 +00:00 
			
		
		
		
	Fix previous commit...
true/false leftover from C++
This commit is contained in:
		
							parent
							
								
									84bc0c9e42
								
							
						
					
					
						commit
						d8fb7363c1
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -145,7 +145,7 @@ void* allocMemoryPages(size_t bytes) { | |||
| #if defined(USE_PTHREAD_JIT_WP) && defined(MAC_OS_VERSION_11_0) \ | ||||
| 	&& MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_11_0 | ||||
| 	if (__builtin_available(macOS 11.0, *)) { | ||||
| 		pthread_jit_write_protect_np(false); | ||||
| 		pthread_jit_write_protect_np(0); | ||||
| 	} | ||||
| #endif | ||||
| #endif | ||||
|  | @ -170,7 +170,7 @@ void setPagesRW(void* ptr, size_t bytes) { | |||
| #if defined(USE_PTHREAD_JIT_WP) && defined(MAC_OS_VERSION_11_0) \ | ||||
| 	&& MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_11_0 | ||||
| 	if (__builtin_available(macOS 11.0, *)) { | ||||
| 		pthread_jit_write_protect_np(false); | ||||
| 		pthread_jit_write_protect_np(0); | ||||
| 	} else { | ||||
| 		pageProtect(ptr, bytes, PAGE_READWRITE, &errfunc); | ||||
| 	} | ||||
|  | @ -184,7 +184,7 @@ void setPagesRX(void* ptr, size_t bytes) { | |||
| #if defined(USE_PTHREAD_JIT_WP) && defined(MAC_OS_VERSION_11_0) \ | ||||
| 	&& MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_11_0 | ||||
| 	if (__builtin_available(macOS 11.0, *)) { | ||||
| 		pthread_jit_write_protect_np(true); | ||||
| 		pthread_jit_write_protect_np(1); | ||||
| 	} else { | ||||
| 		pageProtect(ptr, bytes, PAGE_EXECUTE_READ, &errfunc); | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue