X-Git-Url: https://git.saurik.com/apple/mdnsresponder.git/blobdiff_plain/67c8f8a10700c05d2460d60f5927f23cb5cb9241..2682e09e0dbe18ba42fd4707b09a89e8c34f697c:/Clients/PrinterSetupWizard/PrinterSetupWizardApp.cpp diff --git a/Clients/PrinterSetupWizard/PrinterSetupWizardApp.cpp b/Clients/PrinterSetupWizard/PrinterSetupWizardApp.cpp index e9e255f..d2a896d 100644 --- a/Clients/PrinterSetupWizard/PrinterSetupWizardApp.cpp +++ b/Clients/PrinterSetupWizard/PrinterSetupWizardApp.cpp @@ -13,41 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - - Change History (most recent first): - -$Log: PrinterSetupWizardApp.cpp,v $ -Revision 1.9 2006/08/14 23:24:09 cheshire -Re-licensed mDNSResponder daemon source code under Apache License, Version 2.0 - -Revision 1.8 2005/04/13 17:43:39 shersche - Change "PrinterWizard.dll" to "PrinterWizardResources.dll" - -Revision 1.7 2005/02/15 07:50:09 shersche - Update name - -Revision 1.6 2005/02/10 22:35:10 cheshire - Update name - -Revision 1.5 2005/01/25 18:30:02 shersche -Fix call to PathForResource() by passing in NULL as first parameter. - -Revision 1.4 2005/01/25 08:54:41 shersche - Load resource DLLs at startup. -Bug #: 3911084 - -Revision 1.3 2004/07/13 21:24:23 rpantos -Fix for . - -Revision 1.2 2004/06/24 20:12:08 shersche -Clean up source code -Submitted by: herscher - -Revision 1.1 2004/06/18 04:36:57 rpantos -First checked in - - -*/ + */ #include "stdafx.h" #include "PrinterSetupWizardApp.h" @@ -59,6 +25,11 @@ First checked in #define new DEBUG_NEW #endif +#ifndef HeapEnableTerminationOnCorruption +# define HeapEnableTerminationOnCorruption (HEAP_INFORMATION_CLASS) 1 +#endif + + // Stash away pointers to our resource DLLs static HINSTANCE g_nonLocalizedResources = NULL; @@ -110,6 +81,8 @@ BOOL CPrinterSetupWizardApp::InitInstance() int res; OSStatus err = kNoErr; + HeapSetInformation( NULL, HeapEnableTerminationOnCorruption, NULL, 0 ); + // // initialize the debugging framework //