Closed Bug 382852 Opened 17 years ago Closed 17 years ago

Use structed expception will break the build when using MinGW/GCC compiler.

Categories

(Core Graveyard :: GFX: Win32, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 363592

People

(Reporter: soflare, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 XPCOMViewer/0.9.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Structed expception should not be used. Use if/then insteed.

2050c2050,2051
<         if (::StretchDIBits(aTheHDC, aDX, aDY, aDWidth, aDHeight,
---
>         try {
>            ::StretchDIBits(aTheHDC, aDX, aDY, aDWidth, aDHeight,
2054,2055c2055,2056
<                           SRCCOPY)==GDI_ERROR)
<         {
---
>                           SRCCOPY);
>         }  catch (ex/*EXCEPTION_EXECUTE_HANDLER*/) {

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.