]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/utils.cpp
Small doc updates.
[wxWidgets.git] / src / os2 / utils.cpp
index e837dcc66a569054d7137d2e2fd7215ced29ed13..2e8d254f1300de08cd671684f7735ab60cb1e7cd 100644 (file)
@@ -70,13 +70,13 @@ bool wxGetHostName(
     unsigned short                  nBuffer;
     unsigned short*                 pnTotalAvail;
 
-    NetBiosGetInfo( (const unsigned char*)zServer
-                   ,(const unsigned char*)zComputer
-                   ,nLevel
-                   ,zBuffer
-                   ,nBuffer
-                   ,pnTotalAvail
-                  );
+    NetBios32GetInfo( (const unsigned char*)zServer
+                     ,(const unsigned char*)zComputer
+                     ,nLevel
+                     ,zBuffer
+                     ,nBuffer
+                     ,pnTotalAvail
+                    );
     strcpy(zBuf, zServer);
 #else
     wxChar*                         zSysname;
@@ -102,10 +102,14 @@ bool wxGetHostName(
 // Get user ID e.g. jacs
 bool wxGetUserId(
   wxChar*                           zBuf
-, int                               nMaxSize
+, int                               nType
 )
 {
-   return(U32ELOCL((unsigned char*)zBuf, (unsigned long *)&nMaxSize));
+    long                            lrc;
+    // UPM procs return 0 on success
+    lrc = U32ELOCU((unsigned char*)zBuf, (unsigned long *)&nType);
+    if (lrc == 0) return TRUE;
+    return FALSE;
 }
 
 bool wxGetUserName(