Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
5e413743
Kaydet (Commit)
5e413743
authored
Mar 20, 2011
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix Windows build of sal
üst
7ff8f9a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
osl_Security.cxx
sal/qa/osl/security/osl_Security.cxx
+3
-3
No files found.
sal/qa/osl/security/osl_Security.cxx
Dosyayı görüntüle @
5e413743
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment