Commit 7a4e5997 authored by Patrik Stridvall's avatar Patrik Stridvall Committed by Alexandre Julliard

Fixed some issues found by winapi_check.

parent 94a50778
......@@ -776,6 +776,8 @@ AC_CHECK_HEADERS(\
net/if.h \
netdb.h \
netinet/in.h \
netinet/in_systm.h \
netinet/ip.h \
netinet/tcp.h \
pty.h \
resolv.h \
......@@ -809,7 +811,7 @@ AC_CHECK_HEADERS(\
sys/vfs.h \
sys/vm86.h \
syscall.h \
ucontext.h
ucontext.h \
)
AC_HEADER_STAT()
......
......@@ -73,7 +73,7 @@ debug_channels (crtdll)
@ stub _cprintf
@ stub _cpumode_dll
@ stub _cputs
@ cdecl _creat(str long) CTRDLL__creat
@ cdecl _creat(str long) CRTDLL__creat
@ stub _cscanf
@ extern _ctype CRTDLL_ctype
@ stub _cwait
......@@ -465,7 +465,7 @@ debug_channels (crtdll)
@ cdecl signal(long ptr) CRTDLL_signal
@ cdecl sin(double) sin
@ cdecl sinh(double) sinh
@ varargs sprintf() sprintf
@ varargs sprintf(ptr ptr) sprintf
@ cdecl sqrt(double) sqrt
@ cdecl srand(long) srand
@ varargs sscanf() sscanf
......
......@@ -22,7 +22,10 @@ UB 000416:
* since we need 2 byte wide characters. - Marcus Meissner, 981031
*/
#include "config.h"
#include "crtdll.h"
#include <ctype.h>
#define __USE_ISOC9X 1
#define __USE_ISOC99 1
......@@ -1506,7 +1509,7 @@ VOID __cdecl CRTDLL__purecall(VOID)
/*********************************************************************
* _div (CRTDLL.358)
* div (CRTDLL.358)
*
* Return the quotient and remainder of long integer division.
*/
......@@ -1529,7 +1532,7 @@ div_t __cdecl CRTDLL_div(INT x, INT y)
/*********************************************************************
* _ldiv (CRTDLL.249)
* ldiv (CRTDLL.249)
*
* Return the quotient and remainder of long integer division.
*/
......
......@@ -302,7 +302,7 @@ INT __cdecl CRTDLL__commit(INT fd)
*
* Open a file, creating it if it is not present.
*/
INT __cdecl CTRDLL__creat(LPCSTR path, INT flags)
INT __cdecl CRTDLL__creat(LPCSTR path, INT flags)
{
INT usedFlags = (flags & _O_TEXT)| _O_CREAT| _O_WRONLY| _O_TRUNC;
return CRTDLL__open(path, usedFlags);
......
......@@ -26,9 +26,11 @@
# include <sys/socket.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
# include <netdb.h>
#endif
#ifdef HAVE_NETINET_IN_SYSTM_H
# include <netinet/in_systm.h>
#endif
#include <netinet/in_systm.h>
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
......
......@@ -238,7 +238,7 @@ owner kernel32
224 pascal RegQueryValue(long str ptr ptr) RegQueryValue16
225 pascal RegQueryValueEx(long str ptr ptr ptr ptr) RegQueryValueEx16
226 pascal RegSetValueEx(long str long long ptr long) RegSetValueEx16
227 pascal RegFlushKey(long) RegFlushKey
227 pascal RegFlushKey(long) RegFlushKey16
228 pascal16 K228(word) GetExePtr
229 pascal16 K229(long) Local32GetSegment16
230 pascal GlobalSmartPageLock(word) GlobalPageLock16 #?
......
......@@ -22,12 +22,15 @@
#endif
#include <sys/stat.h>
#include <unistd.h>
#include <netinet/in_systm.h>
#ifdef HAVE_NETINET_IH_H
#ifdef HAVE_NETINET_IN_SYSTM_H
# include <netinet/in_systm.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#include <netinet/in.h>
#include <netinet/ip.h>
#ifdef HAVE_NETINET_IP_H
# include <netinet/ip.h>
#endif
#include "winbase.h"
#include "wingdi.h"
......
......@@ -350,6 +350,12 @@
/* Define if you have the <netinet/in.h> header file. */
#undef HAVE_NETINET_IN_H
/* Define if you have the <netinet/in_systm.h> header file. */
#undef HAVE_NETINET_IN_SYSTM_H
/* Define if you have the <netinet/ip.h> header file. */
#undef HAVE_NETINET_IP_H
/* Define if you have the <netinet/tcp.h> header file. */
#undef HAVE_NETINET_TCP_H
......
......@@ -30,7 +30,9 @@ asm(".org 0x110000");
#endif
#include <sys/time.h>
#include <sys/types.h>
#include <sys/ptrace.h>
#ifdef HAVE_SYS_PTRACE_H
# include <sys/ptrace.h>
#endif
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
......
......@@ -1861,3 +1861,12 @@ DWORD WINAPI RegSetValueEx16( HKEY hkey, LPCSTR name, DWORD reserved, DWORD type
if (!count && (type==REG_SZ)) count = strlen(data);
return RegSetValueExA( hkey, name, reserved, type, data, count );
}
/******************************************************************************
* RegFlushKey16 [KERNEL.227]
*/
DWORD WINAPI RegFlushKey16( HKEY hkey )
{
fix_win16_hkey( &hkey );
return RegFlushKey( hkey );
}
......@@ -12,11 +12,15 @@
#include <errno.h>
#include <sys/types.h>
#ifdef HAVE_SYS_REG_H
#include <sys/reg.h>
# include <sys/reg.h>
#endif
#include <unistd.h>
#include <sys/ptrace.h>
#include <sys/user.h>
#ifdef HAVE_SYS_PTRACE_H
# include <sys/ptrace.h>
#endif
#ifdef HAVE_SYS_USER_H
# include <sys/user.h>
#endif
#include "winbase.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment