blob: 4294743373fa6ffd34b903c1f47c5874e2b50e5c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Index: tools/source/inet/inetmsg.cxx
===================================================================
RCS file: /cvs/util/tools/source/inet/inetmsg.cxx,v
retrieving revision 1.8
retrieving revision 1.8.6.1
diff -u -r1.8 -r1.8.6.1
--- tools/source/inet/inetmsg.cxx 19 Jun 2006 13:46:21 -0000 1.8
+++ tools/source/inet/inetmsg.cxx 27 Jun 2006 11:30:46 -0000 1.8.6.1
@@ -1390,9 +1390,11 @@
// Generate a unique boundary from current time.
sal_Char sTail[16 + 1];
Time aCurTime;
+ sal_uInt64 nThis = reinterpret_cast< sal_uIntPtr >( this ); // we can be on a 64bit architecture
+ nThis = ( ( nThis >> 32 ) ^ nThis ) & SAL_MAX_UINT32;
sprintf (sTail, "%08X%08X",
static_cast< unsigned int >(aCurTime.GetTime()),
- reinterpret_cast< unsigned int >(this));
+ static_cast< unsigned int >(nThis));
m_aBoundary = "------------_4D48";
m_aBoundary += sTail;
|