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
031f4faa
Commit
031f4faa
authored
Oct 23, 1999
by
Jim Aston
Committed by
Alexandre Julliard
Oct 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiling with STRICT.
parent
a0240cad
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
32 deletions
+32
-32
file.c
files/file.c
+14
-14
file.h
include/file.h
+1
-1
winbase.h
include/winbase.h
+15
-15
module.c
loader/module.c
+2
-2
No files found.
files/file.c
View file @
031f4faa
...
...
@@ -327,7 +327,7 @@ HFILE FILE_DupUnixHandle( int fd, DWORD access )
*
* Implementation of CreateFile. Takes a Unix path name.
*/
H
FI
LE
FILE_CreateFile
(
LPCSTR
filename
,
DWORD
access
,
DWORD
sharing
,
H
AND
LE
FILE_CreateFile
(
LPCSTR
filename
,
DWORD
access
,
DWORD
sharing
,
LPSECURITY_ATTRIBUTES
sa
,
DWORD
creation
,
DWORD
attributes
,
HANDLE
template
)
{
...
...
@@ -402,7 +402,7 @@ HFILE FILE_CreateDevice( int client_id, DWORD access, LPSECURITY_ATTRIBUTES sa )
* Doesn't support character devices, pipes, template files, or a
* lot of the 'attributes' flags yet.
*/
H
FI
LE
WINAPI
CreateFileA
(
LPCSTR
filename
,
DWORD
access
,
DWORD
sharing
,
H
AND
LE
WINAPI
CreateFileA
(
LPCSTR
filename
,
DWORD
access
,
DWORD
sharing
,
LPSECURITY_ATTRIBUTES
sa
,
DWORD
creation
,
DWORD
attributes
,
HANDLE
template
)
{
...
...
@@ -486,12 +486,12 @@ HFILE WINAPI CreateFileA( LPCSTR filename, DWORD access, DWORD sharing,
/*************************************************************************
* CreateFile32W (KERNEL32.48)
*/
H
FI
LE
WINAPI
CreateFileW
(
LPCWSTR
filename
,
DWORD
access
,
DWORD
sharing
,
H
AND
LE
WINAPI
CreateFileW
(
LPCWSTR
filename
,
DWORD
access
,
DWORD
sharing
,
LPSECURITY_ATTRIBUTES
sa
,
DWORD
creation
,
DWORD
attributes
,
HANDLE
template
)
{
LPSTR
afn
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
filename
);
H
FI
LE
res
=
CreateFileA
(
afn
,
access
,
sharing
,
sa
,
creation
,
attributes
,
template
);
H
AND
LE
res
=
CreateFileA
(
afn
,
access
,
sharing
,
sa
,
creation
,
attributes
,
template
);
HeapFree
(
GetProcessHeap
(),
0
,
afn
);
return
res
;
}
...
...
@@ -548,7 +548,7 @@ BOOL FILE_Stat( LPCSTR unixName, BY_HANDLE_FILE_INFORMATION *info )
/***********************************************************************
* GetFileInformationByHandle (KERNEL32.219)
*/
DWORD
WINAPI
GetFileInformationByHandle
(
H
FI
LE
hFile
,
DWORD
WINAPI
GetFileInformationByHandle
(
H
AND
LE
hFile
,
BY_HANDLE_FILE_INFORMATION
*
info
)
{
struct
get_file_info_request
*
req
=
get_req_buffer
();
...
...
@@ -610,7 +610,7 @@ DWORD WINAPI GetFileAttributesW( LPCWSTR name )
/***********************************************************************
* GetFileSize (KERNEL32.220)
*/
DWORD
WINAPI
GetFileSize
(
H
FI
LE
hFile
,
LPDWORD
filesizehigh
)
DWORD
WINAPI
GetFileSize
(
H
AND
LE
hFile
,
LPDWORD
filesizehigh
)
{
BY_HANDLE_FILE_INFORMATION
info
;
if
(
!
GetFileInformationByHandle
(
hFile
,
&
info
))
return
0
;
...
...
@@ -622,7 +622,7 @@ DWORD WINAPI GetFileSize( HFILE hFile, LPDWORD filesizehigh )
/***********************************************************************
* GetFileTime (KERNEL32.221)
*/
BOOL
WINAPI
GetFileTime
(
H
FI
LE
hFile
,
FILETIME
*
lpCreationTime
,
BOOL
WINAPI
GetFileTime
(
H
AND
LE
hFile
,
FILETIME
*
lpCreationTime
,
FILETIME
*
lpLastAccessTime
,
FILETIME
*
lpLastWriteTime
)
{
...
...
@@ -1238,7 +1238,7 @@ HFILE WINAPI _lcreat( LPCSTR path, INT attr )
/***********************************************************************
* SetFilePointer (KERNEL32.492)
*/
DWORD
WINAPI
SetFilePointer
(
H
FI
LE
hFile
,
LONG
distance
,
LONG
*
highword
,
DWORD
WINAPI
SetFilePointer
(
H
AND
LE
hFile
,
LONG
distance
,
LONG
*
highword
,
DWORD
method
)
{
struct
set_file_pointer_request
*
req
=
get_req_buffer
();
...
...
@@ -1445,7 +1445,7 @@ UINT WINAPI SetHandleCount( UINT count )
/***********************************************************************
* FlushFileBuffers (KERNEL32.133)
*/
BOOL
WINAPI
FlushFileBuffers
(
H
FI
LE
hFile
)
BOOL
WINAPI
FlushFileBuffers
(
H
AND
LE
hFile
)
{
struct
flush_file_request
*
req
=
get_req_buffer
();
req
->
handle
=
hFile
;
...
...
@@ -1456,7 +1456,7 @@ BOOL WINAPI FlushFileBuffers( HFILE hFile )
/**************************************************************************
* SetEndOfFile (KERNEL32.483)
*/
BOOL
WINAPI
SetEndOfFile
(
H
FI
LE
hFile
)
BOOL
WINAPI
SetEndOfFile
(
H
AND
LE
hFile
)
{
struct
truncate_file_request
*
req
=
get_req_buffer
();
req
->
handle
=
hFile
;
...
...
@@ -1610,7 +1610,7 @@ int FILE_munmap( LPVOID start, DWORD size_high, DWORD size_low )
/***********************************************************************
* GetFileType (KERNEL32.222)
*/
DWORD
WINAPI
GetFileType
(
H
FI
LE
hFile
)
DWORD
WINAPI
GetFileType
(
H
AND
LE
hFile
)
{
struct
get_file_info_request
*
req
=
get_req_buffer
();
req
->
handle
=
hFile
;
...
...
@@ -1885,7 +1885,7 @@ BOOL WINAPI CopyFileExW(LPCWSTR sourceFilename,
/***********************************************************************
* SetFileTime (KERNEL32.650)
*/
BOOL
WINAPI
SetFileTime
(
H
FI
LE
hFile
,
BOOL
WINAPI
SetFileTime
(
H
AND
LE
hFile
,
const
FILETIME
*
lpCreationTime
,
const
FILETIME
*
lpLastAccessTime
,
const
FILETIME
*
lpLastWriteTime
)
...
...
@@ -1908,7 +1908,7 @@ BOOL WINAPI SetFileTime( HFILE hFile,
/**************************************************************************
* LockFile (KERNEL32.511)
*/
BOOL
WINAPI
LockFile
(
H
FI
LE
hFile
,
DWORD
dwFileOffsetLow
,
DWORD
dwFileOffsetHigh
,
BOOL
WINAPI
LockFile
(
H
AND
LE
hFile
,
DWORD
dwFileOffsetLow
,
DWORD
dwFileOffsetHigh
,
DWORD
nNumberOfBytesToLockLow
,
DWORD
nNumberOfBytesToLockHigh
)
{
struct
lock_file_request
*
req
=
get_req_buffer
();
...
...
@@ -1955,7 +1955,7 @@ BOOL WINAPI LockFileEx( HANDLE hFile, DWORD flags, DWORD reserved,
/**************************************************************************
* UnlockFile (KERNEL32.703)
*/
BOOL
WINAPI
UnlockFile
(
H
FI
LE
hFile
,
DWORD
dwFileOffsetLow
,
DWORD
dwFileOffsetHigh
,
BOOL
WINAPI
UnlockFile
(
H
AND
LE
hFile
,
DWORD
dwFileOffsetLow
,
DWORD
dwFileOffsetHigh
,
DWORD
nNumberOfBytesToUnlockLow
,
DWORD
nNumberOfBytesToUnlockHigh
)
{
struct
unlock_file_request
*
req
=
get_req_buffer
();
...
...
include/file.h
View file @
031f4faa
...
...
@@ -35,7 +35,7 @@ extern void FILE_SetDosError(void);
extern
HFILE
FILE_DupUnixHandle
(
int
fd
,
DWORD
access
);
extern
BOOL
FILE_Stat
(
LPCSTR
unixName
,
BY_HANDLE_FILE_INFORMATION
*
info
);
extern
HFILE16
FILE_Dup2
(
HFILE16
hFile1
,
HFILE16
hFile2
);
extern
H
FI
LE
FILE_CreateFile
(
LPCSTR
filename
,
DWORD
access
,
DWORD
sharing
,
extern
H
AND
LE
FILE_CreateFile
(
LPCSTR
filename
,
DWORD
access
,
DWORD
sharing
,
LPSECURITY_ATTRIBUTES
sa
,
DWORD
creation
,
DWORD
attributes
,
HANDLE
template
);
extern
HFILE
FILE_CreateDevice
(
int
client_id
,
DWORD
access
,
...
...
include/winbase.h
View file @
031f4faa
...
...
@@ -1171,9 +1171,9 @@ INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
HANDLE
WINAPI
CreateEventA
(
LPSECURITY_ATTRIBUTES
,
BOOL
,
BOOL
,
LPCSTR
);
HANDLE
WINAPI
CreateEventW
(
LPSECURITY_ATTRIBUTES
,
BOOL
,
BOOL
,
LPCWSTR
);
#define CreateEvent WINELIB_NAME_AW(CreateEvent)
H
FI
LE
WINAPI
CreateFileA
(
LPCSTR
,
DWORD
,
DWORD
,
LPSECURITY_ATTRIBUTES
,
H
AND
LE
WINAPI
CreateFileA
(
LPCSTR
,
DWORD
,
DWORD
,
LPSECURITY_ATTRIBUTES
,
DWORD
,
DWORD
,
HANDLE
);
H
FI
LE
WINAPI
CreateFileW
(
LPCWSTR
,
DWORD
,
DWORD
,
LPSECURITY_ATTRIBUTES
,
H
AND
LE
WINAPI
CreateFileW
(
LPCWSTR
,
DWORD
,
DWORD
,
LPSECURITY_ATTRIBUTES
,
DWORD
,
DWORD
,
HANDLE
);
#define CreateFile WINELIB_NAME_AW(CreateFile)
HANDLE
WINAPI
CreateFileMappingA
(
HANDLE
,
LPSECURITY_ATTRIBUTES
,
DWORD
,
...
...
@@ -1246,7 +1246,7 @@ HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
HRSRC
WINAPI
FindResourceExW
(
HMODULE
,
LPCWSTR
,
LPCWSTR
,
WORD
);
#define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
BOOL
WINAPI
FlushConsoleInputBuffer
(
HANDLE
);
BOOL
WINAPI
FlushFileBuffers
(
H
FI
LE
);
BOOL
WINAPI
FlushFileBuffers
(
H
AND
LE
);
BOOL
WINAPI
FlushViewOfFile
(
LPCVOID
,
DWORD
);
DWORD
WINAPI
FormatMessageA
(
DWORD
,
LPCVOID
,
DWORD
,
DWORD
,
LPSTR
,
DWORD
,
LPDWORD
);
...
...
@@ -1289,13 +1289,13 @@ DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
BOOL
WINAPI
GetFileAttributesExA
(
LPCSTR
,
GET_FILEEX_INFO_LEVELS
,
LPVOID
);
BOOL
WINAPI
GetFileAttributesExW
(
LPCWSTR
,
GET_FILEEX_INFO_LEVELS
,
LPVOID
);
#define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
DWORD
WINAPI
GetFileInformationByHandle
(
H
FI
LE
,
BY_HANDLE_FILE_INFORMATION
*
);
DWORD
WINAPI
GetFileInformationByHandle
(
H
AND
LE
,
BY_HANDLE_FILE_INFORMATION
*
);
BOOL
WINAPI
GetFileSecurityA
(
LPCSTR
,
SECURITY_INFORMATION
,
PSECURITY_DESCRIPTOR
,
DWORD
,
LPDWORD
);
BOOL
WINAPI
GetFileSecurityW
(
LPCWSTR
,
SECURITY_INFORMATION
,
PSECURITY_DESCRIPTOR
,
DWORD
,
LPDWORD
);
#define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
DWORD
WINAPI
GetFileSize
(
H
FI
LE
,
LPDWORD
);
BOOL
WINAPI
GetFileTime
(
HFI
LE
,
LPFILETIME
,
LPFILETIME
,
LPFILETIME
);
DWORD
WINAPI
GetFileType
(
H
FI
LE
);
DWORD
WINAPI
GetFileSize
(
H
AND
LE
,
LPDWORD
);
BOOL
WINAPI
GetFileTime
(
HAND
LE
,
LPFILETIME
,
LPFILETIME
,
LPFILETIME
);
DWORD
WINAPI
GetFileType
(
H
AND
LE
);
DWORD
WINAPI
GetFullPathNameA
(
LPCSTR
,
DWORD
,
LPSTR
,
LPSTR
*
);
DWORD
WINAPI
GetFullPathNameW
(
LPCWSTR
,
DWORD
,
LPWSTR
,
LPWSTR
*
);
#define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
...
...
@@ -1369,7 +1369,7 @@ BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
BOOL
WINAPI
IsProcessorFeaturePresent
(
DWORD
);
BOOL
WINAPI
IsValidLocale
(
DWORD
,
DWORD
);
BOOL
WINAPI
LocalFileTimeToFileTime
(
const
FILETIME
*
,
LPFILETIME
);
BOOL
WINAPI
LockFile
(
H
FI
LE
,
DWORD
,
DWORD
,
DWORD
,
DWORD
);
BOOL
WINAPI
LockFile
(
H
AND
LE
,
DWORD
,
DWORD
,
DWORD
,
DWORD
);
BOOL
WINAPI
LockFileEx
(
HANDLE
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
LPOVERLAPPED
);
BOOL
WINAPI
LookupPrivilegeValueA
(
LPCSTR
,
LPCSTR
,
LPVOID
);
BOOL
WINAPI
LookupPrivilegeValueW
(
LPCWSTR
,
LPCWSTR
,
LPVOID
);
...
...
@@ -1458,21 +1458,21 @@ BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
BOOL
WINAPI
SetConsoleTitleA
(
LPCSTR
);
BOOL
WINAPI
SetConsoleTitleW
(
LPCWSTR
);
#define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
BOOL
WINAPI
SetEndOfFile
(
H
FI
LE
);
BOOL
WINAPI
SetEndOfFile
(
H
AND
LE
);
BOOL
WINAPI
SetEnvironmentVariableA
(
LPCSTR
,
LPCSTR
);
BOOL
WINAPI
SetEnvironmentVariableW
(
LPCWSTR
,
LPCWSTR
);
#define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
BOOL
WINAPI
SetEvent
(
HANDLE
);
VOID
WINAPI
SetFileApisToANSI
(
void
);
VOID
WINAPI
SetFileApisToOEM
(
void
);
DWORD
WINAPI
SetFilePointer
(
H
FI
LE
,
LONG
,
LPLONG
,
DWORD
);
DWORD
WINAPI
SetFilePointer
(
H
AND
LE
,
LONG
,
LPLONG
,
DWORD
);
BOOL
WINAPI
SetFileSecurityA
(
LPCSTR
,
SECURITY_INFORMATION
,
PSECURITY_DESCRIPTOR
);
BOOL
WINAPI
SetFileSecurityW
(
LPCWSTR
,
SECURITY_INFORMATION
,
PSECURITY_DESCRIPTOR
);
#define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
BOOL
WINAPI
SetFileTime
(
H
FI
LE
,
const
FILETIME
*
,
const
FILETIME
*
,
const
FILETIME
*
);
BOOL
WINAPI
SetFileTime
(
H
AND
LE
,
const
FILETIME
*
,
const
FILETIME
*
,
const
FILETIME
*
);
BOOL
WINAPI
SetHandleInformation
(
HANDLE
,
DWORD
,
DWORD
);
BOOL
WINAPI
SetLocalTime
(
const
SYSTEMTIME
*
);
BOOL
WINAPI
SetPriorityClass
(
HANDLE
,
DWORD
);
BOOL
WINAPI
SetLocalTime
(
const
SYSTEMTIME
*
);
BOOL
WINAPI
SetSecurityDescriptorDacl
(
PSECURITY_DESCRIPTOR
,
BOOL
,
PACL
,
BOOL
);
BOOL
WINAPI
SetSecurityDescriptorGroup
(
PSECURITY_DESCRIPTOR
,
PSID
,
BOOL
);
BOOL
WINAPI
SetSecurityDescriptorOwner
(
PSECURITY_DESCRIPTOR
,
PSID
,
BOOL
);
...
...
@@ -1494,7 +1494,7 @@ BOOL WINAPI TlsFree(DWORD);
LPVOID
WINAPI
TlsGetValue
(
DWORD
);
BOOL
WINAPI
TlsSetValue
(
DWORD
,
LPVOID
);
VOID
WINAPI
UnMapLS
(
SEGPTR
);
BOOL
WINAPI
UnlockFile
(
H
FI
LE
,
DWORD
,
DWORD
,
DWORD
,
DWORD
);
BOOL
WINAPI
UnlockFile
(
H
AND
LE
,
DWORD
,
DWORD
,
DWORD
,
DWORD
);
BOOL
WINAPI
UnmapViewOfFile
(
LPVOID
);
LPVOID
WINAPI
VirtualAlloc
(
LPVOID
,
DWORD
,
DWORD
,
DWORD
);
BOOL
WINAPI
VirtualFree
(
LPVOID
,
DWORD
,
DWORD
);
...
...
@@ -1675,8 +1675,8 @@ HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
HMODULE
WINAPI
LoadLibraryA
(
LPCSTR
);
HMODULE
WINAPI
LoadLibraryW
(
LPCWSTR
);
#define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
HMODULE
WINAPI
LoadLibraryExA
(
LPCSTR
,
H
FI
LE
,
DWORD
);
HMODULE
WINAPI
LoadLibraryExW
(
LPCWSTR
,
H
FI
LE
,
DWORD
);
HMODULE
WINAPI
LoadLibraryExA
(
LPCSTR
,
H
AND
LE
,
DWORD
);
HMODULE
WINAPI
LoadLibraryExW
(
LPCWSTR
,
H
AND
LE
,
DWORD
);
#define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
HINSTANCE16
WINAPI
LoadModule16
(
LPCSTR
,
LPVOID
);
HINSTANCE
WINAPI
LoadModule
(
LPCSTR
,
LPVOID
);
...
...
loader/module.c
View file @
031f4faa
...
...
@@ -1357,7 +1357,7 @@ DWORD WINAPI GetModuleFileNameW( HMODULE hModule, LPWSTR lpFileName,
/***********************************************************************
* LoadLibraryExA (KERNEL32)
*/
HMODULE
WINAPI
LoadLibraryExA
(
LPCSTR
libname
,
H
FI
LE
hfile
,
DWORD
flags
)
HMODULE
WINAPI
LoadLibraryExA
(
LPCSTR
libname
,
H
AND
LE
hfile
,
DWORD
flags
)
{
WINE_MODREF
*
wm
;
...
...
@@ -1508,7 +1508,7 @@ HMODULE WINAPI LoadLibrary32_16( LPCSTR libname )
/***********************************************************************
* LoadLibraryExW (KERNEL32)
*/
HMODULE
WINAPI
LoadLibraryExW
(
LPCWSTR
libnameW
,
H
FI
LE
hfile
,
DWORD
flags
)
HMODULE
WINAPI
LoadLibraryExW
(
LPCWSTR
libnameW
,
H
AND
LE
hfile
,
DWORD
flags
)
{
LPSTR
libnameA
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
libnameW
);
HMODULE
ret
=
LoadLibraryExA
(
libnameA
,
hfile
,
flags
);
...
...
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