diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-03-20 09:51:07 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-03-20 09:51:07 +0100 |
commit | 5e41374388e05a605af223421c19dfa86383e911 (patch) | |
tree | ade964dcbc16ba133836d4ed0feb7bb95cf89874 | |
parent | 7ff8f9a4bb008c46f4ac6fa2877a16cafbe2007c (diff) |
Fix Windows build of sal
-rw-r--r-- | sal/qa/osl/security/osl_Security.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/qa/osl/security/osl_Security.cxx b/sal/qa/osl/security/osl_Security.cxx index fe38e5fd0d29..0ab5202d819a 100644 --- a/sal/qa/osl/security/osl_Security.cxx +++ b/sal/qa/osl/security/osl_Security.cxx @@ -460,7 +460,7 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *, LPCWSTR wszAccName = ( LPWSTR ) strUserName.getStr( ); // Create buffers for the SID and the domain name. - PSID pSid = (PSID) new WIN_BYTE[dwSidBufferSize]; + PSID pSid = (PSID) new BYTE[dwSidBufferSize]; CPPUNIT_ASSERT_MESSAGE("# creating SID buffer failed.\n", pSid!= NULL ); memset( pSid, 0, dwSidBufferSize); @@ -498,7 +498,7 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *, // Reallocate memory for the SID buffer. wprintf(L"# The SID buffer was too small. It will be reallocated.\n"); FreeSid( pSid); - pSid = (PSID) new WIN_BYTE[cbSid]; + pSid = (PSID) new BYTE[cbSid]; CPPUNIT_ASSERT_MESSAGE("# re-creating SID buffer failed.\n", pSid!= NULL ); memset( pSid, 0, cbSid); dwSidBufferSize = cbSid; @@ -579,7 +579,7 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *, /// check if logged in user is administrator: - WIN_BOOL b; + BOOL b; SID_IDENTIFIER_AUTHORITY NtAuthority = SECURITY_NT_AUTHORITY; PSID AdministratorsGroup; b = AllocateAndInitializeSid( |