X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/004fd0c8834ca526d335a9294322d9def17ef8a9..0e3610442874eeea4062cece31cdc4f314878fa8:/src/os2/utils.cpp diff --git a/src/os2/utils.cpp b/src/os2/utils.cpp index e837dcc66a..f6c3a5b437 100644 --- a/src/os2/utils.cpp +++ b/src/os2/utils.cpp @@ -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(