[PATCH] kernel32: implement Windows NT style GMEM_MOVEABLE/LMEM_MOVEABLE memory

Dmitry Timoshkov dmitry at baikal.ru
Sun Nov 17 20:05:40 CST 2019


Damjan Jovanovic <damjan.jov at gmail.com> wrote:

> diff --git a/dlls/kernelbase/kernelbase.spec b/dlls/kernelbase/kernelbase.spec
> index 7c5ae99a79..9546d011c7 100644
> --- a/dlls/kernelbase/kernelbase.spec
> +++ b/dlls/kernelbase/kernelbase.spec
> @@ -1769,3 +1769,4 @@
>  @ stdcall lstrlenW(wstr) KERNELBASE_lstrlenW
>  # @ stub time
>  # @ stub wprintf
> +@ cdecl wine_hlocal_hashtable_find_unlocked(ptr)

This is not acceptable.

> diff --git a/include/winbase.h b/include/winbase.h
> index 8b30c5a69a..0a1ad0b3c0 100644
> --- a/include/winbase.h
> +++ b/include/winbase.h
> @@ -2915,6 +2915,22 @@ WINBASEAPI UINT        WINAPI _lwrite(HFILE,LPCSTR,UINT);
>  extern char * CDECL wine_get_unix_file_name( LPCWSTR dos );
>  extern WCHAR * CDECL wine_get_dos_file_name( LPCSTR str );
>  
> +#include "pshpack1.h"
> +
> +struct local_header
> +{
> +   WORD  magic;
> +   void *ptr;
> +   BYTE flags;
> +   BYTE lock;
> +   struct local_header *next;
> +};
> +
> +#include "poppack.h"
> +
> +extern struct local_header *wine_hlocal_hashtable_find_unlocked(const void *ptr);

And this.

-- 
Dmitry.



More information about the wine-devel mailing list