Fixed the declarations of GetFileVersionInfoSizeA/W and
GetFileVersionInfoA/W
Modified: trunk/reactos/lib/version/info.c
Modified: trunk/reactos/w32api/include/winver.h
_____
Modified: trunk/reactos/lib/version/info.c
--- trunk/reactos/lib/version/info.c 2005-10-14 19:28:18 UTC (rev
18455)
+++ trunk/reactos/lib/version/info.c 2005-10-14 19:48:28 UTC (rev
18456)
@@ -345,7 +345,7 @@
*/
DWORD
WINAPI
-GetFileVersionInfoSizeW ( LPWSTR filename, LPDWORD handle )
+GetFileVersionInfoSizeW ( LPCWSTR filename, LPDWORD handle )
{
DWORD len;
@@ -371,7 +371,7 @@
*/
DWORD
WINAPI
-GetFileVersionInfoSizeA ( LPSTR filename, LPDWORD handle )
+GetFileVersionInfoSizeA ( LPCSTR filename, LPDWORD handle )
{
LPWSTR filenameW = VERSION_AllocA2W(filename);
DWORD ret = GetFileVersionInfoSizeW ( filenameW, handle );
@@ -385,7 +385,7 @@
BOOL
WINAPI
GetFileVersionInfoW (
- LPWSTR filename, DWORD handle,
+ LPCWSTR filename, DWORD handle,
DWORD datasize, LPVOID data )
{
DWORD len, extradata;
@@ -411,7 +411,7 @@
BOOL
WINAPI
GetFileVersionInfoA (
- LPSTR filename, DWORD handle,
+ LPCSTR filename, DWORD handle,
DWORD datasize, LPVOID data )
{
LPWSTR filenameW = VERSION_AllocA2W ( filename );
_____
Modified: trunk/reactos/w32api/include/winver.h
--- trunk/reactos/w32api/include/winver.h 2005-10-14 19:28:18 UTC
(rev 18455)
+++ trunk/reactos/w32api/include/winver.h 2005-10-14 19:48:28 UTC
(rev 18456)
@@ -101,10 +101,10 @@
DWORD WINAPI
VerFindFileW(DWORD,LPWSTR,LPWSTR,LPWSTR,LPWSTR,PUINT,LPWSTR,PUINT);
DWORD WINAPI
VerInstallFileA(DWORD,LPSTR,LPSTR,LPSTR,LPSTR,LPSTR,LPSTR,PUINT);
DWORD WINAPI
VerInstallFileW(DWORD,LPWSTR,LPWSTR,LPWSTR,LPWSTR,LPWSTR,LPWSTR,PUINT);
-DWORD WINAPI GetFileVersionInfoSizeA(LPSTR,PDWORD);
-DWORD WINAPI GetFileVersionInfoSizeW(LPWSTR,PDWORD);
-BOOL WINAPI GetFileVersionInfoA(LPSTR,DWORD,DWORD,PVOID);
-BOOL WINAPI GetFileVersionInfoW(LPWSTR,DWORD,DWORD,PVOID);
+DWORD WINAPI GetFileVersionInfoSizeA(LPCSTR,PDWORD);
+DWORD WINAPI GetFileVersionInfoSizeW(LPCWSTR,PDWORD);
+BOOL WINAPI GetFileVersionInfoA(LPCSTR,DWORD,DWORD,PVOID);
+BOOL WINAPI GetFileVersionInfoW(LPCWSTR,DWORD,DWORD,PVOID);
DWORD WINAPI VerLanguageNameA(DWORD,LPSTR,DWORD);
DWORD WINAPI VerLanguageNameW(DWORD,LPWSTR,DWORD);
BOOL WINAPI VerQueryValueA(const LPVOID,LPSTR,LPVOID*,PUINT);