Replaced PTR_SEG_TO_LIN macro by exported MapSL function.
Fixed a few ptr/segptr mismatches.
Moved CONV_RECT/POINT macros to wingdi16.h.
diff --git a/loader/resource.c b/loader/resource.c
index 06cd355..2a8d591 100644
--- a/loader/resource.c
+++ b/loader/resource.c
@@ -16,8 +16,6 @@
#include "winbase.h"
#include "wine/winbase16.h"
#include "wine/exception.h"
-#include "ldt.h"
-#include "global.h"
#include "heap.h"
#include "callback.h"
#include "cursoricon.h"
@@ -393,7 +391,7 @@
*/
LPVOID WINAPI LockResource16( HGLOBAL16 handle )
{
- return PTR_SEG_TO_LIN( WIN16_LockResource16(handle) );
+ return MapSL( WIN16_LockResource16(handle) );
}
/**********************************************************************