diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index cd1759937d1848aa1cbbbb9f0b59cb56e182701e..a8292fcff8dd377323e38d7ff104b1932cef4fd8 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c @@ -335,7 +335,7 @@ CreateMRUListLazy32A (LPMRUINFO lpmi, DWORD dwParam2, DWORD dwParam3, DWORD dwPa if (lpmi) { FIXME (commctrl, "(%lx %lx %lx %lx \"%s\" %lx)\n", lpmi->dwParam1, lpmi->dwParam2, lpmi->dwParam3, - lpmi->hkeyMain, lpmi->lpszSubKey, lpmi->dwParam6); + (DWORD)lpmi->hkeyMain, lpmi->lpszSubKey, lpmi->dwParam6); } /* dummy pointer creation */ diff --git a/files/file.c b/files/file.c index 3d5b46969ce7a1321d4d50c710229d1e6b9fb43e..9bef1e535c25ab4edd4bced046329d1e8217b870 100644 --- a/files/file.c +++ b/files/file.c @@ -37,6 +37,7 @@ #include "process.h" #include "task.h" #include "async.h" +#include "wincon.h" #include "debug.h" #include "server/request.h" diff --git a/graphics/psdrv/text.c b/graphics/psdrv/text.c index ee4beac94bcac04d89ac1c65bb219ad4b8915886..3ce601df3e58b5ecdae8c3431048265a71a90907 100644 --- a/graphics/psdrv/text.c +++ b/graphics/psdrv/text.c @@ -22,7 +22,7 @@ BOOL32 PSDRV_ExtTextOut( DC *dc, INT32 x, INT32 y, UINT32 flags, SIZE32 sz; TRACE(psdrv, "(x=%d, y=%d, flags=0x%08x, str='%.*s', count=%d)\n", x, y, - flags, count, str, count); + flags, (int)count, str, count); strbuf = (char *)HeapAlloc( PSDRV_Heap, 0, count + 1); if(!strbuf) { diff --git a/msdos/int2f.c b/msdos/int2f.c index 6374a2e34e50beeddecc3b348b0f591b2369b3da..13351b88fbbcdb53cc40ed0ffbb51b4a820bc0a6 100644 --- a/msdos/int2f.c +++ b/msdos/int2f.c @@ -28,7 +28,7 @@ static void do_int2f_16( CONTEXT *context ); */ void WINAPI INT_Int2fHandler( CONTEXT *context ) { - TRACE(int,"Subfunction 0x%X\n", AH_reg(context)); + TRACE(int,"Subfunction 0x%X\n", AX_reg(context)); switch(AH_reg(context)) { @@ -265,9 +265,6 @@ static void do_int2f_16( CONTEXT *context ) case 0x80: /* Release time-slice */ AL_reg(context) = 0; - /* FIXME: We need to do something that lets some other process run - here. */ - sleep(0); break; case 0x81: /* Begin critical section. */ diff --git a/programs/winhelp/hlp2sgml.c b/programs/winhelp/hlp2sgml.c index ba7827a16c3e2f38d79642c7653ed7e762e17e42..b90f46f35f9208406aa3206680ef8d75ea9afe55 100644 --- a/programs/winhelp/hlp2sgml.c +++ b/programs/winhelp/hlp2sgml.c @@ -252,34 +252,34 @@ int main(int argc, char **argv) static FILE *file = 0; -HFILE OpenFile32( LPCSTR path, OFSTRUCT *ofs, UINT mode ) +HFILE WINAPI OpenFile32( LPCSTR path, OFSTRUCT *ofs, UINT mode ) { file = *path ? fopen(path, "r") : stdin; return file ? 1 : HFILE_ERROR; } -HFILE _lclose32( HFILE hFile ) +HFILE WINAPI _lclose32( HFILE hFile ) { fclose(file); return 0; } -LONG _hread32( HFILE hFile, LPVOID buffer, LONG count ) +LONG WINAPI _hread32( HFILE hFile, LPVOID buffer, LONG count ) { return fread(buffer, 1, count, file); } -HGLOBAL GlobalAlloc( UINT flags, DWORD size ) +HGLOBAL WINAPI GlobalAlloc( UINT flags, DWORD size ) { return (HGLOBAL) malloc(size); } -LPVOID GlobalLock( HGLOBAL handle ) +LPVOID WINAPI GlobalLock( HGLOBAL handle ) { return (LPVOID) handle; } -HGLOBAL GlobalFree( HGLOBAL handle ) +HGLOBAL WINAPI GlobalFree( HGLOBAL handle ) { free((VOID*) handle); return(0); @@ -291,12 +291,12 @@ HGLOBAL GlobalFree( HGLOBAL handle ) * Copyright 1993 Yngvi Sigurjonsson (yngvi@hafro.is) */ -INT lstrcmp(LPCSTR str1,LPCSTR str2) +INT WINAPI lstrcmp(LPCSTR str1,LPCSTR str2) { return strcmp( str1, str2 ); } -INT lstrcmpi( LPCSTR str1, LPCSTR str2 ) +INT WINAPI lstrcmpi( LPCSTR str1, LPCSTR str2 ) { INT res; @@ -309,19 +309,19 @@ INT lstrcmpi( LPCSTR str1, LPCSTR str2 ) return toupper(*str1) - toupper(*str2); } -INT lstrlen(LPCSTR str) +INT WINAPI lstrlen(LPCSTR str) { return strlen(str); } -LPSTR lstrcpy32A( LPSTR dst, LPCSTR src ) +LPSTR WINAPI lstrcpy32A( LPSTR dst, LPCSTR src ) { if (!src || !dst) return NULL; strcpy( dst, src ); return dst; } -void hmemcpy(LPVOID hpvDest, LPCVOID hpvSource, LONG cbCopy) +void WINAPI hmemcpy(LPVOID hpvDest, LPCVOID hpvSource, LONG cbCopy) { memcpy(hpvDest, hpvSource, cbCopy); }