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
55355d2d
Commit
55355d2d
authored
Mar 22, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Replace inline static with static inline.
parent
efc988e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
shell32_main.h
dlls/shell32/shell32_main.h
+5
-5
shelllink.c
dlls/shell32/shelllink.c
+2
-2
No files found.
dlls/shell32/shell32_main.h
View file @
55355d2d
...
...
@@ -175,7 +175,7 @@ BOOL16 WINAPI AboutDlgProc16(HWND16,UINT16,WPARAM16,LPARAM);
void
WINAPI
_InsertMenuItem
(
HMENU
hmenu
,
UINT
indexMenu
,
BOOL
fByPosition
,
UINT
wID
,
UINT
fType
,
LPCSTR
dwTypeData
,
UINT
fState
);
inline
static
BOOL
SHELL_OsIsUnicode
(
void
)
static
inline
BOOL
SHELL_OsIsUnicode
(
void
)
{
/* if high-bit of version is 0, we are emulating NT */
return
!
(
GetVersion
()
&
0x80000000
);
...
...
@@ -186,26 +186,26 @@ inline static BOOL SHELL_OsIsUnicode(void)
SHFree(*ptr); \
*ptr = NULL; \
};
inline
static
void
__SHCloneStrA
(
char
**
target
,
const
char
*
source
)
static
inline
void
__SHCloneStrA
(
char
**
target
,
const
char
*
source
)
{
*
target
=
SHAlloc
(
strlen
(
source
)
+
1
);
strcpy
(
*
target
,
source
);
}
inline
static
void
__SHCloneStrWtoA
(
char
**
target
,
const
WCHAR
*
source
)
static
inline
void
__SHCloneStrWtoA
(
char
**
target
,
const
WCHAR
*
source
)
{
int
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
source
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
*
target
=
SHAlloc
(
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
source
,
-
1
,
*
target
,
len
,
NULL
,
NULL
);
}
inline
static
void
__SHCloneStrW
(
WCHAR
**
target
,
const
WCHAR
*
source
)
static
inline
void
__SHCloneStrW
(
WCHAR
**
target
,
const
WCHAR
*
source
)
{
*
target
=
SHAlloc
(
(
lstrlenW
(
source
)
+
1
)
*
sizeof
(
WCHAR
)
);
lstrcpyW
(
*
target
,
source
);
}
inline
static
WCHAR
*
__SHCloneStrAtoW
(
WCHAR
**
target
,
const
char
*
source
)
static
inline
WCHAR
*
__SHCloneStrAtoW
(
WCHAR
**
target
,
const
char
*
source
)
{
int
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
source
,
-
1
,
NULL
,
0
);
*
target
=
SHAlloc
(
len
*
sizeof
(
WCHAR
));
...
...
dlls/shell32/shelllink.c
View file @
55355d2d
...
...
@@ -201,7 +201,7 @@ static inline IShellLinkImpl *impl_from_IObjectWithSite( IObjectWithSite *iface
static
HRESULT
ShellLink_UpdatePath
(
LPWSTR
sPathRel
,
LPCWSTR
path
,
LPCWSTR
sWorkDir
,
LPWSTR
*
psPath
);
/* strdup on the process heap */
inline
static
LPWSTR
HEAP_strdupAtoW
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
)
static
inline
LPWSTR
HEAP_strdupAtoW
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
)
{
INT
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
);
LPWSTR
p
=
HeapAlloc
(
heap
,
flags
,
len
*
sizeof
(
WCHAR
)
);
...
...
@@ -211,7 +211,7 @@ inline static LPWSTR HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str)
return
p
;
}
inline
static
LPWSTR
strdupW
(
LPCWSTR
src
)
static
inline
LPWSTR
strdupW
(
LPCWSTR
src
)
{
LPWSTR
dest
;
if
(
!
src
)
return
NULL
;
...
...
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