Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a0fb6246
Commit
a0fb6246
authored
Feb 06, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Avoid using GetExceptionCode outside of an exception handler.
parent
f1bb04ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
server.c
tools/widl/server.c
+4
-1
typegen.c
tools/widl/typegen.c
+2
-1
No files found.
tools/widl/server.c
View file @
a0fb6246
...
...
@@ -392,7 +392,10 @@ static void init_server(void)
print_server
(
"
\n
"
);
print_server
(
"static int __server_filter( struct __server_frame *__frame )
\n
"
);
print_server
(
"{
\n
"
);
print_server
(
" return RPC_BAD_STUB_DATA_EXCEPTION_FILTER;
\n
"
);
print_server
(
" return (__frame->code == STATUS_ACCESS_VIOLATION) ||
\n
"
);
print_server
(
" (__frame->code == STATUS_DATATYPE_MISALIGNMENT) ||
\n
"
);
print_server
(
" (__frame->code == RPC_X_BAD_STUB_DATA) ||
\n
"
);
print_server
(
" (__frame->code == RPC_S_INVALID_BOUND);
\n
"
);
print_server
(
"}
\n
"
);
print_server
(
"
\n
"
);
}
...
...
tools/widl/typegen.c
View file @
a0fb6246
...
...
@@ -3686,7 +3686,8 @@ void write_exceptions( FILE *file )
fprintf
(
file
,
"#else /* USE_COMPILER_EXCEPTIONS */
\n
"
);
fprintf
(
file
,
"
\n
"
);
fprintf
(
file
,
"#define RpcExceptionInit(filter_func,finally_func) do {} while(0)
\n
"
);
fprintf
(
file
,
"#define __DECL_EXCEPTION_FRAME
\n
"
);
fprintf
(
file
,
"#define __DECL_EXCEPTION_FRAME
\\\n
"
);
fprintf
(
file
,
" DWORD code;
\n
"
);
fprintf
(
file
,
"
\n
"
);
fprintf
(
file
,
"#endif /* USE_COMPILER_EXCEPTIONS */
\n
"
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment