1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8
// make sure we only ever spawn one thread
11
DWORD WINAPI CrashingThread(
15
// not a very friendly DLL
16
volatile int* x = (int *)0x0;
28
// we have to crash on another thread because LoadLibrary() will
29
// catch memory access errors and return failure to the calling process
31
NULL, // default security attributes
32
0, // use default stack size
33
CrashingThread , // thread function name
34
NULL, // argument to thread function
35
0, // use default creation flags
36
&tid); // returns the thread identifier