Fix uninitialized warnings.

oldstable
Hans Leidekker 2005-05-24 12:34:29 +00:00 committed by Alexandre Julliard
parent 4ad93416a8
commit 97d1b11ebd
7 changed files with 7 additions and 7 deletions

View File

@ -607,7 +607,7 @@ DATETIME_Refresh (DATETIME_INFO *infoPtr, HDC hdc)
RECT *checkbox = &infoPtr->checkbox;
SIZE size;
COLORREF oldTextColor;
SHORT fieldWidth;
SHORT fieldWidth = 0;
/* draw control edge */
TRACE("\n");

View File

@ -1289,7 +1289,7 @@ static Int64 _chm_decompress_region(struct chmFile *h,
UInt64 nBlock, nOffset;
UInt64 nLen;
UInt64 gotLen;
UChar *ubuffer;
UChar *ubuffer = NULL;
if (len <= 0)
return (Int64)0;

View File

@ -103,7 +103,7 @@ static BOOL INSTR_ReplaceSelector( CONTEXT86 *context, WORD *sel )
static BYTE *INSTR_GetOperandAddr( CONTEXT86 *context, BYTE *instr,
int long_addr, int segprefix, int *len )
{
int mod, rm, base, index = 0, ss = 0, seg = 0, off;
int mod, rm, base = 0, index = 0, ss = 0, seg = 0, off;
LDT_ENTRY entry;
#define GET_VAL(val,type) \

View File

@ -425,7 +425,7 @@ static BOOL BuildTrueTypeAFM(FT_Face face)
{
AFM *afm;
AFMMETRICS *metrics;
LPSTR font_name, full_name, family_name, encoding_scheme;
LPSTR font_name, full_name, family_name, encoding_scheme = NULL;
FT_CharMap charmap;
BOOL retval, added;

View File

@ -548,7 +548,7 @@ BOOL WINAPI WTPacket(HCTX hCtx, UINT wSerial, LPVOID lpPkt)
{
int rc = 0;
LPOPENCONTEXT context;
LPWTPACKET wtp;
LPWTPACKET wtp = NULL;
TRACE("(%p, %d, %p)\n", hCtx, wSerial, lpPkt);

View File

@ -711,7 +711,7 @@ static BOOL should_stop(int bpnum)
BOOL break_should_continue(ADDRESS* addr, DWORD code, int* count, BOOL* is_break)
{
int bpnum;
DWORD oldval;
DWORD oldval = 0;
int wpnum;
enum dbg_exec_mode mode = dbg_curr_thread->exec_mode;

View File

@ -292,7 +292,7 @@ static void dump_sections(void* addr, unsigned num_sect)
static void dump_dir_exported_functions(void)
{
unsigned int size;
unsigned int size = 0;
IMAGE_EXPORT_DIRECTORY *exportDir = get_dir_and_size(IMAGE_FILE_EXPORT_DIRECTORY, &size);
unsigned int i;
DWORD* pFunc;