osl_getProcessInfo requires Size to be set first

This commit is contained in:
Caolán McNamara 2010-12-30 20:51:41 +00:00
parent d9518cb445
commit 9aa773e27c

View file

@ -678,7 +678,8 @@ void Export::getRandomName( const ByteString& sPrefix , ByteString& sRandStr , c
int i;
osl_getSystemTime( &tv );
oslProcessInfo proInfo;
oslProcessInfo proInfo;
proInfo.Size = sizeof(oslProcessInfo);
osl_getProcessInfo( 0 , osl_Process_IDENTIFIER , &proInfo );
value += ((sal_uInt64) ( tv.Nanosec / 1000 ) << 16) ^ ( tv.Nanosec / 1000 ) ^ proInfo.Ident;