From e6ebf42c2bc56b9e2bcab1856c5a62ebcca84706 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Mon, 21 Jan 2002 17:59:38 +0000 Subject: [PATCH] Fix a couple of warnings and a typo. --- dlls/winsock/socket.c | 1 + include/console.h | 2 +- windows/defdlg.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index 6932226e9cc..3225978bdde 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -890,6 +890,7 @@ static int ws_sockaddr_u2ws(const struct sockaddr* uaddr, int uaddrlen, struct W case 1: case 0: /* way too small */ + break; } } break; diff --git a/include/console.h b/include/console.h index b4a058d7b0f..2793c815f30 100644 --- a/include/console.h +++ b/include/console.h @@ -53,7 +53,7 @@ typedef struct CONSOLE_DRIVER void (*scrollUpWindow)(char, char, char, char, char, int, int); void (*scrollDownWindow)(char, char, char, char, char, int, int); - /* Accellerator Functions (Keyboard) */ + /* Accelerator Functions (Keyboard) */ char (*getCharacter)(void); /* Other functions */ diff --git a/windows/defdlg.c b/windows/defdlg.c index a8d10cf1117..6c314d76116 100644 --- a/windows/defdlg.c +++ b/windows/defdlg.c @@ -119,7 +119,7 @@ static HWND DEFDLG_FindDefButton( HWND hwndDlg ) static BOOL DEFDLG_SetDefButton( HWND hwndDlg, DIALOGINFO *dlgInfo, HWND hwndNew ) { - DWORD dlgcode; + DWORD dlgcode=0; /* initialize just to avoid a warning */ if (hwndNew && !((dlgcode=SendMessageW(hwndNew, WM_GETDLGCODE, 0, 0 )) & (DLGC_UNDEFPUSHBUTTON | DLGC_BUTTON)))