Commit 6e740b5b authored by Patrik Stridvall's avatar Patrik Stridvall Committed by Alexandre Julliard

Fixed some issues found by winapi_check.

parent faf64aa9
...@@ -18,15 +18,6 @@ ...@@ -18,15 +18,6 @@
#include "dplayx_messages.h" #include "dplayx_messages.h"
#include "dplayx_queue.h" #include "dplayx_queue.h"
/* Can't seem to solve unresolved reference even with import */
#define HACK_TIMEGETTIME
#if defined( HACK_TIMEGETTIME )
static DWORD timeGetTime(void);
#else
#include "mmsystem.h"
#endif
/* FIXME: Need to create a crit section, store and use it */ /* FIXME: Need to create a crit section, store and use it */
DEFAULT_DEBUG_CHANNEL(dplay); DEFAULT_DEBUG_CHANNEL(dplay);
...@@ -105,7 +96,7 @@ void NS_SetRemoteComputerAsNameServer( LPVOID lpNSAddrHdr, ...@@ -105,7 +96,7 @@ void NS_SetRemoteComputerAsNameServer( LPVOID lpNSAddrHdr,
HEAP_ZERO_MEMORY, HEAP_ZERO_MEMORY,
(LPWSTR)(lpMsg+1) ); (LPWSTR)(lpMsg+1) );
lpCacheNode->dwTime = timeGetTime(); lpCacheNode->dwTime = GetTickCount();
DPQ_INSERT(lpCache->first, lpCacheNode, next ); DPQ_INSERT(lpCache->first, lpCacheNode, next );
...@@ -258,7 +249,7 @@ void NS_PruneSessionCache( LPVOID lpNSInfo ) ...@@ -258,7 +249,7 @@ void NS_PruneSessionCache( LPVOID lpNSInfo )
lpNSCache lpCache = lpNSInfo; lpNSCache lpCache = lpNSInfo;
lpNSCacheData lpCacheEntry; lpNSCacheData lpCacheEntry;
DWORD dwPresentTime = timeGetTime(); DWORD dwPresentTime = GetTickCount();
#if defined( HACK_TIMEGETTIME ) #if defined( HACK_TIMEGETTIME )
DWORD dwPruneTime = dwPresentTime - 2; /* One iteration with safety */ DWORD dwPruneTime = dwPresentTime - 2; /* One iteration with safety */
#else #else
...@@ -328,11 +319,3 @@ void NS_ReplyToEnumSessionsRequest( LPVOID lpMsg, ...@@ -328,11 +319,3 @@ void NS_ReplyToEnumSessionsRequest( LPVOID lpMsg,
} }
#if defined( HACK_TIMEGETTIME )
DWORD timeGetTime(void)
{
static DWORD time = 0;
return time++;
}
#endif
...@@ -478,7 +478,7 @@ NTSTATUS WINAPI RtlUnicodeToOemN( LPSTR dst, DWORD dstlen, LPDWORD reslen, ...@@ -478,7 +478,7 @@ NTSTATUS WINAPI RtlUnicodeToOemN( LPSTR dst, DWORD dstlen, LPDWORD reslen,
/************************************************************************** /**************************************************************************
* RtlUpperString (NTDLL.@) * RtlUpperString (NTDLL.@)
*/ */
void WINAPI RtlUpperString( STRING *dst, const STRING *src, BOOLEAN doalloc ) void WINAPI RtlUpperString( STRING *dst, const STRING *src )
{ {
unsigned int i, len = min(src->Length, dst->MaximumLength); unsigned int i, len = min(src->Length, dst->MaximumLength);
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
* NE_MODULE.module32. * NE_MODULE.module32.
*/ */
#include "config.h"
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_MMAN_H #ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.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