Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
71627251
Commit
71627251
authored
Feb 27, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Use ARRAY_SIZE() macro.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7d9cf7f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
filesystem.c
dlls/scrrun/filesystem.c
+3
-3
scrrun.c
dlls/scrrun/scrrun.c
+1
-1
scrrun_private.h
dlls/scrrun/scrrun_private.h
+2
-0
No files found.
dlls/scrrun/filesystem.c
View file @
71627251
...
...
@@ -3441,13 +3441,13 @@ static HRESULT WINAPI filesys_GetSpecialFolder(IFileSystem3 *iface,
switch
(
SpecialFolder
)
{
case
WindowsFolder
:
ret
=
GetWindowsDirectoryW
(
pathW
,
sizeof
(
pathW
)
/
sizeof
(
WCHAR
));
ret
=
GetWindowsDirectoryW
(
pathW
,
ARRAY_SIZE
(
pathW
));
break
;
case
SystemFolder
:
ret
=
GetSystemDirectoryW
(
pathW
,
sizeof
(
pathW
)
/
sizeof
(
WCHAR
));
ret
=
GetSystemDirectoryW
(
pathW
,
ARRAY_SIZE
(
pathW
));
break
;
case
TemporaryFolder
:
ret
=
GetTempPathW
(
sizeof
(
pathW
)
/
sizeof
(
WCHAR
),
pathW
);
ret
=
GetTempPathW
(
ARRAY_SIZE
(
pathW
),
pathW
);
/* we don't want trailing backslash */
if
(
ret
&&
pathW
[
ret
-
1
]
==
'\\'
)
pathW
[
ret
-
1
]
=
0
;
...
...
dlls/scrrun/scrrun.c
View file @
71627251
...
...
@@ -180,7 +180,7 @@ static void release_typelib(void)
if
(
!
typelib
)
return
;
for
(
i
=
0
;
i
<
sizeof
(
typeinfos
)
/
sizeof
(
*
typeinfos
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
typeinfos
);
i
++
)
if
(
typeinfos
[
i
])
ITypeInfo_Release
(
typeinfos
[
i
]);
...
...
dlls/scrrun/scrrun_private.h
View file @
71627251
...
...
@@ -18,6 +18,8 @@
#ifndef _SCRRUN_PRIVATE_H_
#define _SCRRUN_PRIVATE_H_
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
extern
HRESULT
WINAPI
FileSystem_CreateInstance
(
IClassFactory
*
,
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
Dictionary_CreateInstance
(
IClassFactory
*
,
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
...
...
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