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
ae635c1e
Kaydet (Commit)
ae635c1e
authored
Eki 18, 2010
tarafından
Florian Bircher
Kaydeden (comit)
Norbert Thiebaud
Eki 18, 2010
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use SAL_N_ELEMENTS
üst
bc8fcf20
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
guistdio.inc
desktop/win32/source/guistdio/guistdio.inc
+2
-2
officeloader.cxx
desktop/win32/source/officeloader/officeloader.cxx
+5
-5
sendreportw32.cxx
svx/source/dialog/sendreportw32.cxx
+3
-2
QuickStart.cpp
sysui/source/win32/QuickStart/QuickStart.cpp
+3
-3
No files found.
desktop/win32/source/guistdio/guistdio.inc
Dosyayı görüntüle @
ae635c1e
...
@@ -411,13 +411,13 @@ int _tmain( int, _TCHAR ** )
...
@@ -411,13 +411,13 @@ int _tmain( int, _TCHAR ** )
};
};
#ifdef UNOPKG
#ifdef UNOPKG
dwWaitResult
=
WaitForMultipleObjects
(
elementsof
(
hObjects
),
hObjects
,
TRUE
,
INFINITE
);
dwWaitResult
=
WaitForMultipleObjects
(
SAL_N_ELEMENTS
(
hObjects
),
hObjects
,
TRUE
,
INFINITE
);
#else
#else
bool
bDetach
=
false
;
bool
bDetach
=
false
;
int
nOpenPipes
=
2
;
int
nOpenPipes
=
2
;
do
do
{
{
dwWaitResult
=
WaitForMultipleObjects
(
elementsof
(
hObjects
),
hObjects
,
FALSE
,
INFINITE
);
dwWaitResult
=
WaitForMultipleObjects
(
SAL_N_ELEMENTS
(
hObjects
),
hObjects
,
FALSE
,
INFINITE
);
switch
(
dwWaitResult
)
switch
(
dwWaitResult
)
{
{
...
...
desktop/win32/source/officeloader/officeloader.cxx
Dosyayı görüntüle @
ae635c1e
...
@@ -230,7 +230,7 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int )
...
@@ -230,7 +230,7 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int )
TEXT
(
"FastPipeCommunication"
),
TEXT
(
"FastPipeCommunication"
),
TEXT
(
"0"
),
TEXT
(
"0"
),
szKey
,
szKey
,
elementsof
(
szKey
),
SAL_N_ELEMENTS
(
szKey
),
szPerfTuneIniFile
szPerfTuneIniFile
);
);
...
@@ -258,10 +258,10 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int )
...
@@ -258,10 +258,10 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int )
fSuccess
=
ConvertSidToStringSid
(
pSid
,
&
szUserIdent
);
fSuccess
=
ConvertSidToStringSid
(
pSid
,
&
szUserIdent
);
_tcsncpy
(
szPipeName
,
PIPE_PREFIX
,
elementsof
(
szPipeName
)
);
_tcsncpy
(
szPipeName
,
PIPE_PREFIX
,
SAL_N_ELEMENTS
(
szPipeName
)
);
_tcsncat
(
szPipeName
,
szUserIdent
,
elementsof
(
szPipeName
)
-
_tcslen
(
szPipeName
)
-
1
);
_tcsncat
(
szPipeName
,
szUserIdent
,
SAL_N_ELEMENTS
(
szPipeName
)
-
_tcslen
(
szPipeName
)
-
1
);
_tcsncat
(
szPipeName
,
PIPE_POSTFIX
,
elementsof
(
szPipeName
)
-
_tcslen
(
szPipeName
)
-
1
);
_tcsncat
(
szPipeName
,
PIPE_POSTFIX
,
SAL_N_ELEMENTS
(
szPipeName
)
-
_tcslen
(
szPipeName
)
-
1
);
_tcsncat
(
szPipeName
,
_ultot
(
SUPD
,
szSUPD
,
10
),
elementsof
(
szPipeName
)
-
_tcslen
(
szPipeName
)
-
1
);
_tcsncat
(
szPipeName
,
_ultot
(
SUPD
,
szSUPD
,
10
),
SAL_N_ELEMENTS
(
szPipeName
)
-
_tcslen
(
szPipeName
)
-
1
);
LocalFree
(
szUserIdent
);
LocalFree
(
szUserIdent
);
...
...
svx/source/dialog/sendreportw32.cxx
Dosyayı görüntüle @
ae635c1e
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include <tchar.h>
#include <tchar.h>
#include <stdio.h>
#include <stdio.h>
#include <systools/win32/uwinapi.h>
#include <systools/win32/uwinapi.h>
#include <sal/macros.h>
// need to undef min and max macros from MS headers here to make
// need to undef min and max macros from MS headers here to make
// the std::min and std::max from stl visible again
// the std::min and std::max from stl visible again
...
@@ -199,7 +200,7 @@ namespace svx{
...
@@ -199,7 +200,7 @@ namespace svx{
TCHAR
szTempPath
[
MAX_PATH
];
TCHAR
szTempPath
[
MAX_PATH
];
TCHAR
szFileName
[
MAX_PATH
];
TCHAR
szFileName
[
MAX_PATH
];
GetTempPath
(
elementsof
(
szTempPath
),
szTempPath
);
GetTempPath
(
SAL_N_ELEMENTS
(
szTempPath
),
szTempPath
);
GetTempFileName
(
szTempPath
,
TEXT
(
"DSC"
),
0
,
szFileName
);
GetTempFileName
(
szTempPath
,
TEXT
(
"DSC"
),
0
,
szFileName
);
FILE
*
fp
=
_tfopen
(
szFileName
,
_T
(
"wb"
)
);
FILE
*
fp
=
_tfopen
(
szFileName
,
_T
(
"wb"
)
);
...
@@ -226,7 +227,7 @@ namespace svx{
...
@@ -226,7 +227,7 @@ namespace svx{
ZeroMemory
(
&
StartupInfo
,
sizeof
(
StartupInfo
)
);
ZeroMemory
(
&
StartupInfo
,
sizeof
(
StartupInfo
)
);
StartupInfo
.
cb
=
sizeof
(
StartupInfo
.
cb
);
StartupInfo
.
cb
=
sizeof
(
StartupInfo
.
cb
);
sntprintf
(
szBuffer
,
elementsof
(
szBuffer
),
sntprintf
(
szBuffer
,
SAL_N_ELEMENTS
(
szBuffer
),
_T
(
"%s -noui -load -send"
),
_T
(
"%s -noui -load -send"
),
szPath
);
szPath
);
...
...
sysui/source/win32/QuickStart/QuickStart.cpp
Dosyayı görüntüle @
ae635c1e
...
@@ -102,11 +102,11 @@ void NotifyListener( HWND hWnd )
...
@@ -102,11 +102,11 @@ void NotifyListener( HWND hWnd )
nid
.
cbSize
=
sizeof
(
NOTIFYICONDATA
);
nid
.
cbSize
=
sizeof
(
NOTIFYICONDATA
);
nid
.
hWnd
=
hWnd
;
nid
.
hWnd
=
hWnd
;
nid
.
uID
=
IDM_QUICKSTART
;
nid
.
uID
=
IDM_QUICKSTART
;
nid
.
szTip
[
elementsof
(
nid
.
szTip
)
-
1
]
=
0
;
nid
.
szTip
[
SAL_N_ELEMENTS
(
nid
.
szTip
)
-
1
]
=
0
;
// nid.hIcon = bTerminateVeto ? hIconActive : hIconInActive;
// nid.hIcon = bTerminateVeto ? hIconActive : hIconInActive;
// strncpy(nid.szTip, bTerminateVeto ? STRING_QUICKSTARTACTIVE : STRING_QUICKSTARTINACTIVE,
elementsof
(nid.szTip) - 1 );
// strncpy(nid.szTip, bTerminateVeto ? STRING_QUICKSTARTACTIVE : STRING_QUICKSTARTINACTIVE,
SAL_N_ELEMENTS
(nid.szTip) - 1 );
nid
.
hIcon
=
hIconActive
;
nid
.
hIcon
=
hIconActive
;
strncpy
(
nid
.
szTip
,
szTooltipString
,
elementsof
(
nid
.
szTip
)
-
1
);
strncpy
(
nid
.
szTip
,
szTooltipString
,
SAL_N_ELEMENTS
(
nid
.
szTip
)
-
1
);
nid
.
uFlags
=
NIF_TIP
|
NIF_ICON
;
nid
.
uFlags
=
NIF_TIP
|
NIF_ICON
;
// update systray
// update systray
...
...
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