]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/utils.cpp
Well, can't hurt to do some char -> wxChar, though wxHTML may not work
[wxWidgets.git] / src / os2 / utils.cpp
index e837dcc66a569054d7137d2e2fd7215ced29ed13..f6c3a5b4376eece26d00649a30284c67878e2492 100644 (file)
@@ -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(