Alexandre Julliard : widl: Fix possible crash in write_array_tfs.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jan 25 06:12:08 CST 2007
Module: wine
Branch: master
Commit: 8996c79d83bd51e99faf16d6427b015c91196abd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8996c79d83bd51e99faf16d6427b015c91196abd
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Jan 24 20:08:06 2007 +0100
widl: Fix possible crash in write_array_tfs.
---
tools/widl/typegen.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 936812d..585ecc1 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -819,7 +819,7 @@ static size_t write_array_tfs(FILE *file
}
else
{
- const expr_t *dim = LIST_ENTRY( list_head( array ), expr_t, entry );
+ const expr_t *dim = array ? LIST_ENTRY( list_head( array ), expr_t, entry ) : NULL;
size_t pointer_start_offset = *typestring_offset;
int has_pointer = 0;
More information about the wine-cvs
mailing list