| 
														
															@@ -4212,6 +4212,13 @@ tor_run_main(const tor_main_configuration_t *tor_cfg) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 #endif 
														 | 
														
														 | 
														
															 #endif 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   /* On heap corruption, just give up; don't try to play along. */ 
														 | 
														
														 | 
														
															   /* On heap corruption, just give up; don't try to play along. */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0); 
														 | 
														
														 | 
														
															   HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  /* SetProcessDEPPolicy is only supported on 32-bit Windows. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+   * (On 64-bit Windows it always fails, and some compilers don't like the 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+   * PSETDEP cast.) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+   * 32-bit Windows defines _WIN32. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+   * 64-bit Windows defines _WIN32 and _WIN64. */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+#ifndef _WIN64 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   /* Call SetProcessDEPPolicy to permanently enable DEP. 
														 | 
														
														 | 
														
															   /* Call SetProcessDEPPolicy to permanently enable DEP. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      The function will not resolve on earlier versions of Windows, 
														 | 
														
														 | 
														
															      The function will not resolve on earlier versions of Windows, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      and failure is not dangerous. */ 
														 | 
														
														 | 
														
															      and failure is not dangerous. */ 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -4225,6 +4232,7 @@ tor_run_main(const tor_main_configuration_t *tor_cfg) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       setdeppolicy(3); 
														 | 
														
														 | 
														
															       setdeppolicy(3); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+#endif /* !defined(_WIN64) */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 #endif /* defined(_WIN32) */ 
														 | 
														
														 | 
														
															 #endif /* defined(_WIN32) */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															   { 
														 | 
														
														 | 
														
															   { 
														 |