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
015dc79c
Commit
015dc79c
authored
Sep 01, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version: Fix some Ver*() prototypes (especially wrt constness).
Better match the PSDK types and fix the winapi_check warnings.
parent
6927c9ca
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
27 deletions
+27
-27
locale.c
dlls/kernel32/locale.c
+2
-2
info.c
dlls/version/info.c
+2
-2
install.c
dlls/version/install.c
+13
-13
winver.h
include/winver.h
+8
-8
win32.api
tools/winapi/win32.api
+2
-2
No files found.
dlls/kernel32/locale.c
View file @
015dc79c
...
...
@@ -2140,7 +2140,7 @@ BOOL WINAPI EnumSystemLocalesW( LOCALE_ENUMPROCW lpfnLocaleEnum, DWORD dwFlags )
* Failure: 0. Use GetLastError() to determine the cause.
*
*/
DWORD
WINAPI
VerLanguageNameA
(
UINT
wLang
,
LPSTR
szLang
,
UINT
nSize
)
DWORD
WINAPI
VerLanguageNameA
(
DWORD
wLang
,
LPSTR
szLang
,
DWORD
nSize
)
{
return
GetLocaleInfoA
(
MAKELCID
(
wLang
,
SORT_DEFAULT
),
LOCALE_SENGLANGUAGE
,
szLang
,
nSize
);
}
...
...
@@ -2151,7 +2151,7 @@ DWORD WINAPI VerLanguageNameA( UINT wLang, LPSTR szLang, UINT nSize )
*
* See VerLanguageNameA.
*/
DWORD
WINAPI
VerLanguageNameW
(
UINT
wLang
,
LPWSTR
szLang
,
UINT
nSize
)
DWORD
WINAPI
VerLanguageNameW
(
DWORD
wLang
,
LPWSTR
szLang
,
DWORD
nSize
)
{
return
GetLocaleInfoW
(
MAKELCID
(
wLang
,
SORT_DEFAULT
),
LOCALE_SENGLANGUAGE
,
szLang
,
nSize
);
}
...
...
dlls/version/info.c
View file @
015dc79c
...
...
@@ -762,7 +762,7 @@ static BOOL WINAPI VersionInfo32_QueryValue( const VS_VERSION_INFO_STRUCT32 *inf
* VerQueryValueA [VERSION.@]
*/
BOOL
WINAPI
VerQueryValueA
(
LPCVOID
pBlock
,
LPCSTR
lpSubBlock
,
LPVOID
*
lplpBuffer
,
UINT
*
puLen
)
LPVOID
*
lplpBuffer
,
PUINT
puLen
)
{
static
const
char
rootA
[]
=
"
\\
"
;
static
const
char
varfileinfoA
[]
=
"
\\
VarFileInfo
\\
Translation"
;
...
...
@@ -815,7 +815,7 @@ BOOL WINAPI VerQueryValueA( LPCVOID pBlock, LPCSTR lpSubBlock,
* VerQueryValueW [VERSION.@]
*/
BOOL
WINAPI
VerQueryValueW
(
LPCVOID
pBlock
,
LPCWSTR
lpSubBlock
,
LPVOID
*
lplpBuffer
,
UINT
*
puLen
)
LPVOID
*
lplpBuffer
,
PUINT
puLen
)
{
static
const
WCHAR
rootW
[]
=
{
'\\'
,
0
};
static
const
WCHAR
varfileinfoW
[]
=
{
'\\'
,
'V'
,
'a'
,
'r'
,
'F'
,
'i'
,
'l'
,
'e'
,
'I'
,
'n'
,
'f'
,
'o'
,
...
...
dlls/version/install.c
View file @
015dc79c
...
...
@@ -122,14 +122,14 @@ static int testFileExistenceW( const WCHAR *path, const WCHAR *file, BOOL excl )
* Reimplementation of VerFindFile from original stub.
*/
DWORD
WINAPI
VerFindFileA
(
UINT
flags
,
LPSTR
lpszFilename
,
LPSTR
lpszWinDir
,
LPSTR
lpszAppDir
,
DWORD
flags
,
LP
C
STR
lpszFilename
,
LP
C
STR
lpszWinDir
,
LP
C
STR
lpszAppDir
,
LPSTR
lpszCurDir
,
UINT
*
lpuCurDirLen
,
PUINT
lpuCurDirLen
,
LPSTR
lpszDestDir
,
UINT
*
lpuDestDirLen
)
PUINT
lpuDestDirLen
)
{
DWORD
retval
=
0
;
const
char
*
curDir
;
...
...
@@ -220,9 +220,9 @@ DWORD WINAPI VerFindFileA(
/*****************************************************************************
* VerFindFileW [VERSION.@]
*/
DWORD
WINAPI
VerFindFileW
(
UINT
flags
,
LPWSTR
lpszFilename
,
LP
WSTR
lpszWinDir
,
LP
WSTR
lpszAppDir
,
LPWSTR
lpszCurDir
,
UINT
*
lpuCurDirLen
,
LPWSTR
lpszDestDir
,
UINT
*
lpuDestDirLen
)
DWORD
WINAPI
VerFindFileW
(
DWORD
flags
,
LPCWSTR
lpszFilename
,
LPC
WSTR
lpszWinDir
,
LP
CWSTR
lpszAppDir
,
LPWSTR
lpszCurDir
,
PUINT
lpuCurDirLen
,
LPWSTR
lpszDestDir
,
PUINT
lpuDestDirLen
)
{
static
const
WCHAR
emptyW
;
DWORD
retval
=
0
;
...
...
@@ -361,8 +361,8 @@ _error2vif(DWORD error) {
* VerInstallFileA [VERSION.@]
*/
DWORD
WINAPI
VerInstallFileA
(
UINT
flags
,
LPSTR
srcfilename
,
LPSTR
destfilename
,
LP
STR
srcdir
,
LPSTR
destdir
,
LPSTR
curdir
,
LPSTR
tmpfile
,
UINT
*
tmpfilelen
)
DWORD
flags
,
LPCSTR
srcfilename
,
LPCSTR
destfilename
,
LPC
STR
srcdir
,
LPCSTR
destdir
,
LPCSTR
curdir
,
LPSTR
tmpfile
,
PUINT
tmpfilelen
)
{
LPCSTR
pdest
;
char
destfn
[
260
],
tmpfn
[
260
],
srcfn
[
260
];
...
...
@@ -529,8 +529,8 @@ DWORD WINAPI VerInstallFileA(
* VerInstallFileW [VERSION.@]
*/
DWORD
WINAPI
VerInstallFileW
(
UINT
flags
,
LPWSTR
srcfilename
,
LPWSTR
destfilename
,
LP
WSTR
srcdir
,
LP
WSTR
destdir
,
LPWSTR
curdir
,
LPWSTR
tmpfile
,
UINT
*
tmpfilelen
)
DWORD
flags
,
LPCWSTR
srcfilename
,
LPCWSTR
destfilename
,
LPC
WSTR
srcdir
,
LP
CWSTR
destdir
,
LPCWSTR
curdir
,
LPWSTR
tmpfile
,
PUINT
tmpfilelen
)
{
LPSTR
wsrcf
=
NULL
,
wsrcd
=
NULL
,
wdestf
=
NULL
,
wdestd
=
NULL
,
wtmpf
=
NULL
,
wcurd
=
NULL
;
DWORD
ret
;
...
...
include/winver.h
View file @
015dc79c
...
...
@@ -150,17 +150,17 @@ typedef struct tagVS_FIXEDFILEINFO {
/* function prototypes */
DWORD
WINAPI
VerFindFileA
(
UINT
,
LPSTR
,
LPSTR
,
LPSTR
,
LPSTR
,
UINT
*
,
LPSTR
,
UINT
*
);
DWORD
WINAPI
VerFindFileW
(
UINT
,
LPWSTR
,
LPWSTR
,
LPWSTR
,
LPWSTR
,
UINT
*
,
LPWSTR
,
UINT
*
);
DWORD
WINAPI
VerFindFileA
(
DWORD
,
LPCSTR
,
LPCSTR
,
LPCSTR
,
LPSTR
,
PUINT
,
LPSTR
,
PUINT
);
DWORD
WINAPI
VerFindFileW
(
DWORD
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
LPWSTR
,
PUINT
,
LPWSTR
,
PUINT
);
#define VerFindFile WINELIB_NAME_AW(VerFindFile)
DWORD
WINAPI
VerInstallFileA
(
UINT
,
LPSTR
,
LPSTR
,
LPSTR
,
LPSTR
,
LPSTR
,
LPSTR
,
UINT
*
);
DWORD
WINAPI
VerInstallFileW
(
UINT
,
LPWSTR
,
LPWSTR
,
LPWSTR
,
LPWSTR
,
LPWSTR
,
LPWSTR
,
UINT
*
);
DWORD
WINAPI
VerInstallFileA
(
DWORD
,
LPCSTR
,
LPCSTR
,
LPCSTR
,
LPCSTR
,
LPCSTR
,
LPSTR
,
PUINT
);
DWORD
WINAPI
VerInstallFileW
(
DWORD
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
LPWSTR
,
PUINT
);
#define VerInstallFile WINELIB_NAME_AW(VerInstallFile)
DWORD
WINAPI
VerLanguageNameA
(
UINT
,
LPSTR
,
UINT
);
DWORD
WINAPI
VerLanguageNameW
(
UINT
,
LPWSTR
,
UINT
);
DWORD
WINAPI
VerLanguageNameA
(
DWORD
,
LPSTR
,
DWORD
);
DWORD
WINAPI
VerLanguageNameW
(
DWORD
,
LPWSTR
,
DWORD
);
#define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
BOOL
WINAPI
VerQueryValueA
(
LPCVOID
,
LPCSTR
,
LPVOID
*
,
UINT
*
);
BOOL
WINAPI
VerQueryValueW
(
LPCVOID
,
LPCWSTR
,
LPVOID
*
,
UINT
*
);
BOOL
WINAPI
VerQueryValueA
(
LPCVOID
,
LPCSTR
,
LPVOID
*
,
PUINT
);
BOOL
WINAPI
VerQueryValueW
(
LPCVOID
,
LPCWSTR
,
LPVOID
*
,
PUINT
);
#define VerQueryValue WINELIB_NAME_AW(VerQueryValue)
DWORD
WINAPI
GetFileVersionInfoSizeA
(
LPCSTR
,
LPDWORD
);
DWORD
WINAPI
GetFileVersionInfoSizeW
(
LPCWSTR
,
LPDWORD
);
...
...
tools/winapi/win32.api
View file @
015dc79c
...
...
@@ -5342,14 +5342,14 @@ TASKENUMPROC
BOOL
DWORD
UINT
%ptr
LPCVOID
LPDWORD
LPVOID
LPVOID *
UINT *
PUINT
%str
...
...
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