summaryrefslogtreecommitdiff
path: root/crashrep
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-07-25 10:27:47 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-07-25 10:27:47 +0000
commitb2beef62d627abe709a5fa26240a401f82fb1ca4 (patch)
tree113396564362d616855cd691dc7d4f62d467f96a /crashrep
parentf1c74ba219a1042784ef7532b4e75c7f13f21c32 (diff)
INTEGRATION: CWS crashrep10 (1.4.8); FILE MERGED
2003/07/24 17:38:55 hro 1.4.8.1: #111037# Don't include UID in error report
Diffstat (limited to 'crashrep')
-rwxr-xr-xcrashrep/source/win32/soreport.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/crashrep/source/win32/soreport.cpp b/crashrep/source/win32/soreport.cpp
index eb52db154f8f..d3d2e6fa1c83 100755
--- a/crashrep/source/win32/soreport.cpp
+++ b/crashrep/source/win32/soreport.cpp
@@ -474,25 +474,18 @@ BOOL WriteReportFile( CrashReportParams *pParams )
CHAR szTitle[1024] = "";
CHAR szBuildId[1024] = "";
CHAR szEmail[1024] = "";
- CHAR szUserName[256] = "";
- TCHAR tszUserName[256] = TEXT("");
- DWORD dwUserNameSize = elementsof(tszUserName);
const char *pszUserType = getenv( "STAROFFICE_USERTYPE" );
const char *pszProductName = getenv( "PRODUCTNAME" );
- GetUserName( tszUserName, &dwUserNameSize );
-
WideCharToMultiByte( CP_UTF8, 0, pParams->szTitle, -1, szTitle, sizeof(szTitle), NULL, NULL );
WideCharToMultiByte( CP_UTF8, 0, g_szBuildId, -1, szBuildId, sizeof(szBuildId), NULL, NULL );
WideCharToMultiByte( CP_UTF8, 0, pParams->szEmail, -1, szEmail, sizeof(szEmail), NULL, NULL );
- WideCharToMultiByte( CP_UTF8, 0, tszUserName, -1, szUserName, sizeof(szUserName), NULL, NULL );
fprintf( fp,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<!DOCTYPE errormail:errormail PUBLIC \"-//OpenOffice.org//DTD ErrorMail 1.0//EN\" \"errormail.dtd\">\n"
- "<errormail:errormail xmlns:errormail=\"http://openoffice.org/2002/errormail\" uid=\"%s\" usertype=\"%s\">\n"
+ "<errormail:errormail xmlns:errormail=\"http://openoffice.org/2002/errormail\" usertype=\"%s\">\n"
"<reportmail:mail xmlns:reportmail=\"http://openoffice.org/2002/reportmail\" version=\"1.0\" feedback=\"%s\" email=\"%s\">\n",
- szUserName,
pszUserType ? pszUserType : "",
pParams->fAllowContact ? "true" : "false",
pParams->fAllowContact ? xml_encode(szEmail).c_str() : ""