]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/utilsexc.cpp
fixes for 'make install' for wxBase - seems to work
[wxWidgets.git] / src / os2 / utilsexc.cpp
index 88048a5d18896941a105924bb0a94b6e9e374a0d..f80036e7d413c9217aa7ff3475478ab68831d529 100644 (file)
 
 #include "wx/os2/private.h"
 
-#define INCL_DOSPROCESS
-#define INCL_DOSERRORS
-#define INCL_DOS
-#include <os2.h>
 #define PURE_32
 #include <upm.h>
 #include <netcons.h>
@@ -252,9 +248,9 @@ bool wxGetFullHostName(
     char                            zServer[256];
     char                            zComputer[256];
     unsigned long                   ulLevel = 0;
-    unsigned char*                  zBuffer;
-    unsigned long                   ulBuffer;
-    unsigned long*                  pulTotalAvail;
+    unsigned char*                  zBuffer = NULL;
+    unsigned long                   ulBuffer = 256;
+    unsigned long*                  pulTotalAvail = NULL;
 
     NetBios32GetInfo( (const unsigned char*)zServer
                      ,(const unsigned char*)zComputer