Warnings and typo

Francois Gouget fgouget at free.fr
Mon Jan 21 02:08:59 CST 2002



Changelog:

 * dlls/winsock/socket.c,
   windows/defdlg.c,
   include/console.h

   Fix a couple of warnings and a typo



--
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
 Advice is what we ask for when we already know the answer but wish we didn't
                                 -- Eric Jong
-------------- next part --------------
Index: dlls/winsock/socket.c
===================================================================
RCS file: /home/wine/wine/dlls/winsock/socket.c,v
retrieving revision 1.78
diff -u -r1.78 socket.c
--- dlls/winsock/socket.c	2002/01/18 18:57:44	1.78
+++ dlls/winsock/socket.c	2002/01/21 05:40:55
@@ -890,6 +890,7 @@
             case 1:
             case 0:
                 /* way too small */
+                break;
             }
         }
         break;
Index: windows/defdlg.c
===================================================================
RCS file: /home/wine/wine/windows/defdlg.c,v
retrieving revision 1.21
diff -u -r1.21 defdlg.c
--- windows/defdlg.c	2002/01/15 20:26:47	1.21
+++ windows/defdlg.c	2002/01/21 05:41:07
@@ -119,7 +119,7 @@
 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)))
Index: include/console.h
===================================================================
RCS file: /home/wine/wine/include/console.h,v
retrieving revision 1.18
diff -u -r1.18 console.h
--- include/console.h	2002/01/15 20:41:59	1.18
+++ include/console.h	2002/01/21 06:18:35
@@ -53,7 +53,7 @@
    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 */


More information about the wine-patches mailing list