Bug 461856 - No Username on windows mobile r=bsmedberg
authorBrad Lassey <blassey@mozilla.com>
Wed, 03 Dec 2008 08:41:12 -0500
changeset 22238 70097082a265b6d8311265dec169a374200496d3
parent 22237 bbd7d4a7f52cb0024a7debbb61b5b26dee139673
child 22239 8a0308fa57db278c865b7dfaca1e37354935273c
push idunknown
push userunknown
push dateunknown
reviewersbsmedberg
bugs461856
milestone1.9.2a1pre
Bug 461856 - No Username on windows mobile r=bsmedberg
toolkit/components/startup/src/nsUserInfoWin.cpp
--- a/toolkit/components/startup/src/nsUserInfoWin.cpp
+++ b/toolkit/components/startup/src/nsUserInfoWin.cpp
@@ -51,27 +51,28 @@ nsUserInfo::~nsUserInfo()
 {
 }
 
 NS_IMPL_ISUPPORTS1(nsUserInfo,nsIUserInfo)
 
 NS_IMETHODIMP
 nsUserInfo::GetUsername(char **aUsername)
 {
+#ifndef WINCE
     *aUsername = nsnull;
 
     PRUnichar username[256];
     DWORD size = 256;
 
     if (!GetUserNameW(username, &size))
         return NS_ERROR_FAILURE;
 
     *aUsername = ToNewUTF8String(nsDependentString(username));
     if (*aUsername) return NS_OK;
-
+#endif
     return NS_ERROR_FAILURE;
 }
 
 NS_IMETHODIMP 
 nsUserInfo::GetFullname(PRUnichar **aFullname)
 {
     *aFullname = nsnull;
     return NS_ERROR_NOT_IMPLEMENTED;