diff options
| author | nat-goodspeed <nat@lindenlab.com> | 2024-05-30 12:36:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-30 12:36:51 -0400 |
| commit | a8b6112eb7cbdb65fa16f88e1bba473fecefb5a6 (patch) | |
| tree | 23f73597a41f8db0cc0c98b64255d620e931ba20 /indra/llwindow | |
| parent | 4189cb74421794ba123bf8724caa843c9d9d1c78 (diff) | |
| parent | dfdb88305e4612c54f190c1ba237bdb609224d74 (diff) | |
Merge pull request #1496 from secondlife/nat/catch-test-blown-stack
Attempt to diagnose stack overflow in test programs. Also, improve build.yaml logic.
Diffstat (limited to 'indra/llwindow')
| -rw-r--r-- | indra/llwindow/llwindowwin32.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index d6b93b93d9..12cd5320b8 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -163,18 +163,7 @@ HGLRC SafeCreateContext(HDC &hdc) GLuint SafeChoosePixelFormat(HDC &hdc, const PIXELFORMATDESCRIPTOR *ppfd) { - __try - { - return ChoosePixelFormat(hdc, ppfd); - } - __except (EXCEPTION_EXECUTE_HANDLER) - { - // convert to C++ styled exception - // C exception don't allow classes, so it's a regular char array - char integer_string[32]; - sprintf(integer_string, "SEH, code: %lu\n", GetExceptionCode()); - throw std::exception(integer_string); - } + return LL::seh::catcher([hdc, ppfd]{ return ChoosePixelFormat(hdc, ppfd); }); } //static |
