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
024d6c50
Commit
024d6c50
authored
Nov 25, 2000
by
Patrik Stridvall
Committed by
Alexandre Julliard
Nov 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some issues found by winapi_check.
parent
b2c89dce
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
79 additions
and
31 deletions
+79
-31
fontdlg.c
dlls/commdlg/fontdlg.c
+15
-12
linux.c
dlls/dinput/joystick/linux.c
+3
-1
debugtools.c
dlls/ntdll/debugtools.c
+18
-8
rpcrt4_main.c
dlls/rpcrt4/rpcrt4_main.c
+4
-1
setupapi.spec
dlls/setupapi/setupapi.spec
+1
-1
shelllink.c
dlls/shell32/shelllink.c
+5
-2
ftp.c
dlls/wininet/ftp.c
+1
-1
relay.c
if1632/relay.c
+31
-4
user.c
windows/user.c
+1
-1
No files found.
dlls/commdlg/fontdlg.c
View file @
024d6c50
...
...
@@ -269,7 +269,7 @@ static BOOL CFn_HookCallChk32(LPCHOOSEFONTA lpcf)
/*************************************************************************
* AddFontFamily [internal]
*/
static
INT
AddFontFamily
(
LPLOGFONTA
lplf
,
UINT
nFontType
,
static
INT
AddFontFamily
(
const
LOGFONTA
*
lplf
,
UINT
nFontType
,
LPCHOOSEFONTA
lpcf
,
HWND
hwnd
)
{
int
i
;
...
...
@@ -308,12 +308,12 @@ typedef struct
/*************************************************************************
* FontFamilyEnumProc32 [internal]
*/
static
INT
WINAPI
FontFamilyEnumProc
(
LPENUMLOGFONTA
lpEnum
LogFont
,
LPNEWTEXTMETRICA
metrics
,
UINT
n
FontType
,
LPARAM
lParam
)
static
INT
WINAPI
FontFamilyEnumProc
(
const
LOGFONTA
*
lp
LogFont
,
const
TEXTMETRICA
*
metrics
,
DWORD
dw
FontType
,
LPARAM
lParam
)
{
LPCFn_ENUMSTRUCT
e
;
e
=
(
LPCFn_ENUMSTRUCT
)
lParam
;
return
AddFontFamily
(
&
lpEnumLogFont
->
elfLogFont
,
n
FontType
,
e
->
lpcf32a
,
e
->
hWnd1
);
return
AddFontFamily
(
lpLogFont
,
dw
FontType
,
e
->
lpcf32a
,
e
->
hWnd1
);
}
/***********************************************************************
...
...
@@ -337,7 +337,7 @@ INT16 WINAPI FontFamilyEnumProc16( SEGPTR logfont, SEGPTR metrics,
*
* Fill font style information into combobox (without using font.c directly)
*/
static
int
SetFontStylesToCombo2
(
HWND
hwnd
,
HDC
hdc
,
LPLOGFONTA
lplf
)
static
int
SetFontStylesToCombo2
(
HWND
hwnd
,
HDC
hdc
,
const
LOGFONTA
*
lplf
)
{
#define FSTYLES 4
struct
FONTSTYLE
...
...
@@ -350,12 +350,15 @@ static int SetFontStylesToCombo2(HWND hwnd, HDC hdc, LPLOGFONTA lplf)
HFONT
hf
;
TEXTMETRICA
tm
;
int
i
,
j
;
LOGFONTA
lf
;
memcpy
(
&
lf
,
lplf
,
sizeof
(
LOGFONTA
));
for
(
i
=
0
;
i
<
FSTYLES
;
i
++
)
{
l
plf
->
lfItalic
=
fontstyles
[
i
].
italic
;
l
plf
->
lfWeight
=
fontstyles
[
i
].
weight
;
hf
=
CreateFontIndirectA
(
lp
lf
);
l
f
.
lfItalic
=
fontstyles
[
i
].
italic
;
l
f
.
lfWeight
=
fontstyles
[
i
].
weight
;
hf
=
CreateFontIndirectA
(
&
lf
);
hf
=
SelectObject
(
hdc
,
hf
);
GetTextMetricsA
(
hdc
,
&
tm
);
hf
=
SelectObject
(
hdc
,
hf
);
...
...
@@ -415,7 +418,7 @@ static int SetFontSizesToCombo3(HWND hwnd, LPCHOOSEFONTA lpcf)
/***********************************************************************
* AddFontStyle [internal]
*/
static
INT
AddFontStyle
(
LPLOGFONTA
lplf
,
UINT
nFontType
,
static
INT
AddFontStyle
(
const
LOGFONTA
*
lplf
,
UINT
nFontType
,
LPCHOOSEFONTA
lpcf
,
HWND
hcmb2
,
HWND
hcmb3
,
HWND
hDlg
)
{
int
i
;
...
...
@@ -466,14 +469,14 @@ INT16 WINAPI FontStyleEnumProc16( SEGPTR logfont, SEGPTR metrics,
/***********************************************************************
* FontStyleEnumProc32 [internal]
*/
static
INT
WINAPI
FontStyleEnumProc
(
LPENUMLOGFONTA
lpFont
,
LPNEWTEXTMETRICA
metrics
,
UINT
n
FontType
,
LPARAM
lParam
)
static
INT
WINAPI
FontStyleEnumProc
(
const
LOGFONTA
*
lpFont
,
const
TEXTMETRICA
*
metrics
,
DWORD
dw
FontType
,
LPARAM
lParam
)
{
LPCFn_ENUMSTRUCT
s
=
(
LPCFn_ENUMSTRUCT
)
lParam
;
HWND
hcmb2
=
s
->
hWnd1
;
HWND
hcmb3
=
s
->
hWnd2
;
HWND
hDlg
=
GetParent
(
hcmb3
);
return
AddFontStyle
(
&
lpFont
->
elfLogFont
,
n
FontType
,
s
->
lpcf32a
,
hcmb2
,
return
AddFontStyle
(
lpFont
,
dw
FontType
,
s
->
lpcf32a
,
hcmb2
,
hcmb3
,
hDlg
);
}
...
...
dlls/dinput/joystick/linux.c
View file @
024d6c50
...
...
@@ -20,7 +20,9 @@
#ifdef HAVE_SYS_ERRNO_H
# include <sys/errno.h>
#endif
#include <linux/joystick.h>
#ifdef HAVE_LINUX_JOYSTICK_H
# include <linux/joystick.h>
#endif
#define JOYDEV "/dev/js0"
#include "debugtools.h"
...
...
dlls/ntdll/debugtools.c
View file @
024d6c50
...
...
@@ -62,8 +62,9 @@ static inline void release( void *ptr )
info
->
str_pos
=
ptr
;
}
/* ---------------------------------------------------------------------- */
/***********************************************************************
* wine_dbgstr_an
*/
const
char
*
wine_dbgstr_an
(
const
char
*
src
,
int
n
)
{
char
*
dst
,
*
res
;
...
...
@@ -112,8 +113,9 @@ const char *wine_dbgstr_an( const char *src, int n )
return
res
;
}
/* ---------------------------------------------------------------------- */
/***********************************************************************
* wine_dbgstr_wn
*/
const
char
*
wine_dbgstr_wn
(
const
WCHAR
*
src
,
int
n
)
{
char
*
dst
,
*
res
;
...
...
@@ -162,8 +164,9 @@ const char *wine_dbgstr_wn( const WCHAR *src, int n )
return
res
;
}
/* ---------------------------------------------------------------------- */
/***********************************************************************
* wine_dbgstr_guid
*/
const
char
*
wine_dbgstr_guid
(
const
GUID
*
id
)
{
char
*
str
;
...
...
@@ -185,8 +188,9 @@ const char *wine_dbgstr_guid( const GUID *id )
return
str
;
}
/* ---------------------------------------------------------------------- */
/***********************************************************************
* wine_dbg_vprintf
*/
int
wine_dbg_vprintf
(
const
char
*
format
,
va_list
args
)
{
struct
debug_info
*
info
=
get_info
();
...
...
@@ -206,6 +210,9 @@ int wine_dbg_vprintf( const char *format, va_list args )
return
ret
;
}
/***********************************************************************
* wine_dbg_printf
*/
int
wine_dbg_printf
(
const
char
*
format
,
...)
{
int
ret
;
...
...
@@ -217,6 +224,9 @@ int wine_dbg_printf(const char *format, ...)
return
ret
;
}
/***********************************************************************
* wine_dbg_log
*/
int
wine_dbg_log
(
enum
__DEBUG_CLASS
cls
,
const
char
*
channel
,
const
char
*
function
,
const
char
*
format
,
...
)
{
...
...
dlls/rpcrt4/rpcrt4_main.c
View file @
024d6c50
...
...
@@ -315,7 +315,10 @@ RPC_STATUS WINAPI UuidToStringA(UUID *Uuid, unsigned char** StringUuid)
return
S_OK
;
/*FIXME: this should be RPC_S_OK */
}
WINAPI
HRESULT
NdrDllRegisterProxy
(
/***********************************************************************
* NdrDllRegisterProxy (RPCRT4.@)
*/
WINAPI
HRESULT
WINAPI
NdrDllRegisterProxy
(
HMODULE
hDll
,
/*const ProxyFileInfo */
void
**
pProxyFileList
,
const
CLSID
*
pclsid
...
...
dlls/setupapi/setupapi.spec
View file @
024d6c50
...
...
@@ -123,7 +123,7 @@ debug_channels (setupapi setupx)
#156 stdcall SetupDuplicateDiskSpaceListW() SetupDuplicateDiskSpaceListW
157 stdcall SetupFindFirstLineA(long str str ptr) SetupFindFirstLineA
#158 stdcall SetupFindFirstLineW() SetupFindFirstLineW
159 stdcall SetupFindNextLine(
long)
SetupFindNextLine
159 stdcall SetupFindNextLine(
ptr ptr)
SetupFindNextLine
#160 stdcall SetupFindNextMatchLineA() SetupFindNextMatchLineA
#161 stdcall SetupFindNextMatchLineW() SetupFindNextMatchLineW
#162 stdcall SetupFreeSourceListA() SetupFreeSourceListA
...
...
dlls/shell32/shelllink.c
View file @
024d6c50
...
...
@@ -5,13 +5,16 @@
*
*/
#include "config.h"
#include <string.h>
#include <sys/stat.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <sys/wait.h>
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
#include "debugtools.h"
#include "winerror.h"
#include "winbase.h"
...
...
dlls/wininet/ftp.c
View file @
024d6c50
...
...
@@ -1325,7 +1325,7 @@ HINTERNET FTP_Connect(HINTERNET hInternet, LPCSTR lpszServerName,
lpwfs
->
hdr
.
lpwhparent
=
(
LPWININETHANDLEHEADER
)
hInternet
;
lpwfs
->
sndSocket
=
nsocket
;
sock_namelen
=
sizeof
(
lpwfs
->
socketAddress
);
getsockname
(
nsocket
,
&
lpwfs
->
socketAddress
,
&
sock_namelen
);
getsockname
(
nsocket
,
(
struct
sockaddr
*
)
&
lpwfs
->
socketAddress
,
&
sock_namelen
);
lpwfs
->
phostent
=
phe
;
if
(
NULL
==
lpszUserName
)
...
...
if1632/relay.c
View file @
024d6c50
...
...
@@ -75,10 +75,37 @@ void CALLBACK CallTo16RegisterShort( CONTEXT86 *context, INT nArgs )
void
CALLBACK
CallTo16RegisterLong
(
CONTEXT86
*
context
,
INT
nArgs
)
{
assert
(
FALSE
);
}
WORD
__wine_call_from_16_word
()
{
assert
(
FALSE
);
}
LONG
__wine_call_from_16_long
()
{
assert
(
FALSE
);
}
void
__wine_call_from_16_regs
()
{
assert
(
FALSE
);
}
void
__wine_call_from_16_thunk
()
{
assert
(
FALSE
);
}
/***********************************************************************
* __wine_call_from_16_word
*/
WORD
__cdecl
__wine_call_from_16_word
(...)
{
assert
(
FALSE
);
}
/***********************************************************************
* __wine_call_from_16_long
*/
LONG
__cdecl
__wine_call_from_16_long
(...)
{
assert
(
FALSE
);
}
/***********************************************************************
* __wine_call_from_16_regs
*/
void
__cdecl
__wine_call_from_16_regs
(...)
{
assert
(
FALSE
);
}
/***********************************************************************
* __wine_call_from_16_thunk
*/
void
__cdecl
__wine_call_from_16_thunk
(...)
{
assert
(
FALSE
);
}
DWORD
WINAPI
CALL32_CBClient
(
FARPROC
proc
,
LPWORD
args
,
DWORD
*
esi
)
{
assert
(
FALSE
);
}
...
...
windows/user.c
View file @
024d6c50
...
...
@@ -680,7 +680,7 @@ void WINAPI RegisterSystemThread(DWORD flags, DWORD reserved)
}
/***********************************************************************
* RegisterDeviceNotification (USER32.477)
* RegisterDeviceNotification
A
(USER32.477)
*/
HDEVNOTIFY
WINAPI
RegisterDeviceNotificationA
(
HANDLE
hnd
,
LPVOID
notifyfilter
,
DWORD
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