| OLD | NEW |
| 1 ; Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 ; Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 ; Use of this source code is governed by a BSD-style license that can be | 2 ; Use of this source code is governed by a BSD-style license that can be |
| 3 ; found in the LICENSE file. | 3 ; found in the LICENSE file. |
| 4 ; | 4 ; |
| 5 ; Tag the exception handler as an SEH handler in case the executable | 5 ; Tag the exception handler as an SEH handler in case the executable |
| 6 ; is linked with /SAFESEH (which is the default). | 6 ; is linked with /SAFESEH (which is the default). |
| 7 ; | 7 ; |
| 8 ; MASM 8.0 inserts an additional leading underscore in front of names | 8 ; MASM 8.0 inserts an additional leading underscore in front of names |
| 9 ; and this is an attempted fix until we understand why. | 9 ; and this is an attempted fix until we understand why. |
| 10 IF @version LT 800 | 10 ; MASM 10.0 fixed this. |
| 11 IF @version LT 800 OR @version GE 1000 |
| 11 _ExceptionBarrierHandler PROTO | 12 _ExceptionBarrierHandler PROTO |
| 12 .SAFESEH _ExceptionBarrierHandler | 13 .SAFESEH _ExceptionBarrierHandler |
| 13 _ExceptionBarrierReportOnlyModuleHandler PROTO | 14 _ExceptionBarrierReportOnlyModuleHandler PROTO |
| 14 .SAFESEH _ExceptionBarrierReportOnlyModuleHandler | 15 .SAFESEH _ExceptionBarrierReportOnlyModuleHandler |
| 15 _ExceptionBarrierCallCustomHandler PROTO | 16 _ExceptionBarrierCallCustomHandler PROTO |
| 16 .SAFESEH _ExceptionBarrierCallCustomHandler | 17 .SAFESEH _ExceptionBarrierCallCustomHandler |
| 17 ELSE | 18 ELSE |
| 18 ExceptionBarrierHandler PROTO | 19 ExceptionBarrierHandler PROTO |
| 19 .SAFESEH ExceptionBarrierHandler | 20 .SAFESEH ExceptionBarrierHandler |
| 20 ExceptionBarrierReportOnlyModuleHandler PROTO | 21 ExceptionBarrierReportOnlyModuleHandler PROTO |
| (...skipping 30 matching lines...) Expand all Loading... |
| 51 OPTION EPILOGUE:None | 52 OPTION EPILOGUE:None |
| 52 | 53 |
| 53 mov edx, DWORD PTR [esp + 4] | 54 mov edx, DWORD PTR [esp + 4] |
| 54 mov eax, [edx] | 55 mov eax, [edx] |
| 55 mov FS:[0], eax | 56 mov FS:[0], eax |
| 56 ret 4 | 57 ret 4 |
| 57 | 58 |
| 58 UnregisterExceptionRecord ENDP | 59 UnregisterExceptionRecord ENDP |
| 59 | 60 |
| 60 END | 61 END |
| OLD | NEW |