Avoid structures or arrays of size 0.

oldstable
Gregg Mattinson 2002-07-19 03:18:05 +00:00 committed by Alexandre Julliard
parent 963985b303
commit 8a191ff5b8
4 changed files with 4 additions and 3 deletions

View File

@ -25,6 +25,7 @@
typedef struct typedef struct
{ {
int empty;
/* empty */ /* empty */
} User_DirectDrawImpl_Part; } User_DirectDrawImpl_Part;

View File

@ -21,6 +21,7 @@
struct FakeZBuffer_DirectDrawSurfaceImpl_Part struct FakeZBuffer_DirectDrawSurfaceImpl_Part
{ {
int dummy;
}; };
typedef struct typedef struct

View File

@ -334,7 +334,7 @@ typedef struct {
DWORD dwPrivateBytes; DWORD dwPrivateBytes;
DWORD dwPageFileBytes; DWORD dwPageFileBytes;
DWORD dwUnknown7[4]; DWORD dwUnknown7[4];
THREADINFO ti[0]; THREADINFO ti[1];
} SYSTEM_PROCESS_INFORMATION; } SYSTEM_PROCESS_INFORMATION;
typedef struct { typedef struct {

View File

@ -154,7 +154,7 @@ typedef struct OMFSegMap
{ {
unsigned short cSeg; unsigned short cSeg;
unsigned short cSegLog; unsigned short cSegLog;
OMFSegMapDesc rgDesc[0]; /* OMFSegMapDesc rgDesc[0];*/
} OMFSegMap; } OMFSegMap;
@ -185,4 +185,3 @@ typedef struct OMFSourceModule
unsigned short cSeg; unsigned short cSeg;
unsigned long baseSrcFile[1]; unsigned long baseSrcFile[1];
} OMFSourceModule; } OMFSourceModule;