Bugfix for sound dropping out, and workaround for Half-Life's
[wine/wine-kai.git] / dlls / win32s / win32s16.c
blobcf59faeb3e6d1077f42d0a0a1c813e831c689065
1 /*
2 * WIN32S16
3 * DLL for Win32s
5 * Copyright (c) 1997 Andreas Mohr
6 */
8 #include <string.h>
9 #include <stdlib.h>
10 #include "windef.h"
11 #include "wine/winbase16.h"
12 #include "debugtools.h"
14 DEFAULT_DEBUG_CHANNEL(dll);
16 /***********************************************************************
17 * BootTask16
19 void WINAPI BootTask16()
21 MESSAGE("BootTask(): should only be used by WIN32S.EXE.\n");
24 /***********************************************************************
25 * StackLinearToSegmented (WIN32S16.43)
27 * Written without any docu.
29 SEGPTR WINAPI StackLinearToSegmented16(WORD w1, WORD w2)
31 FIXME("(%d,%d):stub.\n",w1,w2);
32 return (SEGPTR)NULL;
36 /***********************************************************************
37 * UTSelectorOffsetToLinear16 (WIN32S16.48)
39 * rough guesswork, but seems to work (I had no "reasonable" docu)
41 LPVOID WINAPI UTSelectorOffsetToLinear16(SEGPTR sptr)
43 return MapSL(sptr);
46 /***********************************************************************
47 * UTLinearToSelectorOffset16 (WIN32S16.49)
49 * FIXME: I don't know if that's the right way to do linear -> segmented
51 SEGPTR WINAPI UTLinearToSelectorOffset16(LPVOID lptr)
53 return (SEGPTR)lptr;