winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
September 2021
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
1030 discussions
Start a n
N
ew thread
Connor McAdams : oleacc: Add Client_get_accFocus tests.
by Alexandre Julliard
20 Sep '21
20 Sep '21
Module: wine Branch: master Commit: 1a3db363c6b4065af532a8db1e6309be753b1781 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=1a3db363c6b4065af532a8db…
Author: Connor McAdams <cmcadams(a)codeweavers.com> Date: Mon Sep 20 18:03:31 2021 +0200 oleacc: Add Client_get_accFocus tests. Signed-off-by: Connor McAdams <cmcadams(a)codeweavers.com> Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/oleacc/tests/main.c | 99 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 97 insertions(+), 2 deletions(-) diff --git a/dlls/oleacc/tests/main.c b/dlls/oleacc/tests/main.c index 97fc625ac8b..180113b29f9 100644 --- a/dlls/oleacc/tests/main.c +++ b/dlls/oleacc/tests/main.c @@ -916,11 +916,11 @@ static DWORD WINAPI default_client_thread(LPVOID param) static void test_default_client_accessible_object(void) { - IAccessible *acc; + IAccessible *acc, *win; IDispatch *disp; IOleWindow *ow; IEnumVARIANT *ev; - HWND chld, btn, hwnd, hwnd2; + HWND chld, chld2, btn, hwnd, hwnd2; HRESULT hr; VARIANT vid, v; BSTR str; @@ -939,6 +939,9 @@ static void test_default_client_accessible_object(void) btn = CreateWindowA("BUTTON", "btn &t &junk", WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, 50, 0, 50, 50, hwnd, NULL, NULL, NULL); ok(btn != NULL, "CreateWindow failed\n"); + chld2 = CreateWindowA("static", "static &t &junk", WS_CHILD | WS_VISIBLE, + 0, 0, 50, 50, chld, NULL, NULL, NULL); + ok(chld2 != NULL, "CreateWindow failed\n"); hr = CreateStdAccessibleObject(NULL, OBJID_CLIENT, &IID_IAccessible, (void**)&acc); ok(hr == E_FAIL, "got %x\n", hr); @@ -1013,6 +1016,94 @@ static void test_default_client_accessible_object(void) ok(hr == E_INVALIDARG, "get_accChild returned %x\n", hr); ok(disp == NULL, "disp = %p\n", disp); + /* Neither the parent nor any child windows have focus, VT_EMPTY. */ + hr = IAccessible_get_accFocus(acc, &v); + ok(hr == S_OK, "hr %#x\n", hr); + ok(V_VT(&v) == VT_EMPTY, "V_VT(&v) = %d\n", V_VT(&v)); + + /* Set the focus to the parent window. */ + ShowWindow(hwnd, SW_SHOW); + SetFocus(hwnd); + hr = IAccessible_get_accFocus(acc, &v); + ok(hr == S_OK, "hr %#x\n", hr); + ok(V_VT(&v) == VT_I4, "V_VT(&v) = %d\n", V_VT(&v)); + ok(V_I4(&v) == CHILDID_SELF, "V_I4(&v) = %d\n", V_I4(&v)); + + /* Set focus to each child window. */ + SetFocus(btn); + hr = IAccessible_get_accFocus(acc, &v); + ok(hr == S_OK, "hr %#x\n", hr); + ok(V_VT(&v) == VT_DISPATCH, "V_VT(&v) = %d\n", V_VT(&v)); + ok(V_DISPATCH(&v) != NULL, "V_DISPATCH(&v) = %p\n", V_DISPATCH(&v)); + + hr = IDispatch_QueryInterface(V_DISPATCH(&v), &IID_IOleWindow, (void**)&ow); + ok(hr == S_OK, "got %x\n", hr); + hr = IOleWindow_GetWindow(ow, &hwnd2); + todo_wine ok(hr == S_OK, "got %x\n", hr); + todo_wine ok(btn == hwnd2, "hwnd2 = %p, expected %p\n", hwnd2, btn); + IOleWindow_Release(ow); + + hr = IDispatch_QueryInterface(V_DISPATCH(&v), &IID_IAccessible, (void**)&win); + ok(hr == S_OK, "got %x\n", hr); + IDispatch_Release(V_DISPATCH(&v)); + + V_VT(&vid) = VT_I4; + V_I4(&vid) = CHILDID_SELF; + hr = IAccessible_get_accRole(win, vid, &v); + todo_wine ok(hr == S_OK, "got %x\n", hr); + todo_wine ok(V_VT(&v) == VT_I4, "V_VT(&v) = %d\n", V_VT(&v)); + todo_wine ok(V_I4(&v) == ROLE_SYSTEM_WINDOW, "V_I4(&v) = %d\n", V_I4(&v)); + IAccessible_Release(win); + + SetFocus(chld); + hr = IAccessible_get_accFocus(acc, &v); + ok(hr == S_OK, "hr %#x\n", hr); + ok(V_VT(&v) == VT_DISPATCH, "V_VT(&v) = %d\n", V_VT(&v)); + ok(V_DISPATCH(&v) != NULL, "V_DISPATCH(&v) = %p\n", V_DISPATCH(&v)); + + hr = IDispatch_QueryInterface(V_DISPATCH(&v), &IID_IOleWindow, (void**)&ow); + ok(hr == S_OK, "got %x\n", hr); + hr = IOleWindow_GetWindow(ow, &hwnd2); + todo_wine ok(hr == S_OK, "got %x\n", hr); + todo_wine ok(chld == hwnd2, "hwnd2 = %p, expected %p\n", hwnd2, chld); + IOleWindow_Release(ow); + + hr = IDispatch_QueryInterface(V_DISPATCH(&v), &IID_IAccessible, (void**)&win); + ok(hr == S_OK, "got %x\n", hr); + IDispatch_Release(V_DISPATCH(&v)); + + hr = IAccessible_get_accRole(win, vid, &v); + todo_wine ok(hr == S_OK, "got %x\n", hr); + todo_wine ok(V_VT(&v) == VT_I4, "V_VT(&v) = %d\n", V_VT(&v)); + todo_wine ok(V_I4(&v) == ROLE_SYSTEM_WINDOW, "V_I4(&v) = %d\n", V_I4(&v)); + IAccessible_Release(win); + + /* Child of a child, still works on parent HWND. */ + SetFocus(chld2); + hr = IAccessible_get_accFocus(acc, &v); + ok(hr == S_OK, "hr %#x\n", hr); + ok(V_VT(&v) == VT_DISPATCH, "V_VT(&v) = %d\n", V_VT(&v)); + ok(V_DISPATCH(&v) != NULL, "V_DISPATCH(&v) = %p\n", V_DISPATCH(&v)); + + hr = IDispatch_QueryInterface(V_DISPATCH(&v), &IID_IOleWindow, (void**)&ow); + ok(hr == S_OK, "got %x\n", hr); + hr = IOleWindow_GetWindow(ow, &hwnd2); + todo_wine ok(hr == S_OK, "got %x\n", hr); + todo_wine ok(chld2 == hwnd2, "hwnd2 = %p, expected %p\n", hwnd2, chld2); + IOleWindow_Release(ow); + + hr = IDispatch_QueryInterface(V_DISPATCH(&v), &IID_IAccessible, (void**)&win); + ok(hr == S_OK, "got %x\n", hr); + IDispatch_Release(V_DISPATCH(&v)); + + hr = IAccessible_get_accRole(win, vid, &v); + todo_wine ok(hr == S_OK, "got %x\n", hr); + todo_wine ok(V_VT(&v) == VT_I4, "V_VT(&v) = %d\n", V_VT(&v)); + todo_wine ok(V_I4(&v) == ROLE_SYSTEM_WINDOW, "V_I4(&v) = %d\n", V_I4(&v)); + IAccessible_Release(win); + + ShowWindow(hwnd, SW_HIDE); + hr = IAccessible_QueryInterface(acc, &IID_IEnumVARIANT, (void**)&ev); ok(hr == S_OK, "got %x\n", hr); @@ -1195,6 +1286,10 @@ static void test_default_client_accessible_object(void) ok(V_VT(&v) == VT_I4, "V_VT(&v) = %d\n", V_VT(&v)); ok(V_I4(&v) == STATE_SYSTEM_INVISIBLE, "V_I4(&v) = %x\n", V_I4(&v)); + hr = IAccessible_get_accFocus(acc, &v); + ok(hr == S_OK, "hr %#x\n", hr); + ok(V_VT(&v) == VT_EMPTY, "V_VT(&v) = %d\n", V_VT(&v)); + hr = IAccessible_accHitTest(acc, 200, 200, &v); ok(hr == S_OK, "got %x\n", hr); ok(V_VT(&v) == VT_I4, "V_VT(&v) = %d\n", V_VT(&v));
1
0
0
0
Connor McAdams : oleacc: Add Client_get_accFocus implementation.
by Alexandre Julliard
20 Sep '21
20 Sep '21
Module: wine Branch: master Commit: 57895ed8aeb3f32989e6f80de25ef158a2a3d6d2 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=57895ed8aeb3f32989e6f80d…
Author: Connor McAdams <cmcadams(a)codeweavers.com> Date: Mon Sep 20 18:03:25 2021 +0200 oleacc: Add Client_get_accFocus implementation. Signed-off-by: Connor McAdams <cmcadams(a)codeweavers.com> Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/oleacc/client.c | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/dlls/oleacc/client.c b/dlls/oleacc/client.c index 0c2215fe62e..93f6b590f78 100644 --- a/dlls/oleacc/client.c +++ b/dlls/oleacc/client.c @@ -303,11 +303,37 @@ static HRESULT WINAPI Client_get_accKeyboardShortcut(IAccessible *iface, return S_OK; } -static HRESULT WINAPI Client_get_accFocus(IAccessible *iface, VARIANT *pvarID) +static HRESULT WINAPI Client_get_accFocus(IAccessible *iface, VARIANT *focus) { Client *This = impl_from_Client(iface); - FIXME("(%p)->(%p)\n", This, pvarID); - return E_NOTIMPL; + GUITHREADINFO info; + + TRACE("(%p)->(%p)\n", This, focus); + + V_VT(focus) = VT_EMPTY; + info.cbSize = sizeof(info); + if(GetGUIThreadInfo(0, &info) && info.hwndFocus) { + if(info.hwndFocus == This->hwnd) { + V_VT(focus) = VT_I4; + V_I4(focus) = CHILDID_SELF; + } + else if(IsChild(This->hwnd, info.hwndFocus)) { + IDispatch *disp; + HRESULT hr; + + hr = AccessibleObjectFromWindow(info.hwndFocus, OBJID_WINDOW, + &IID_IDispatch, (void**)&disp); + if(FAILED(hr)) + return hr; + if(!disp) + return E_FAIL; + + V_VT(focus) = VT_DISPATCH; + V_DISPATCH(focus) = disp; + } + } + + return S_OK; } static HRESULT WINAPI Client_get_accSelection(IAccessible *iface, VARIANT *pvarID)
1
0
0
0
Jacek Caban : gdi32: Handle scalable fonts directly in AddFontResourceExW and RemoveFontResourceExW.
by Alexandre Julliard
20 Sep '21
20 Sep '21
Module: wine Branch: master Commit: c332707df4b90803ff2e814f7f6d7bc2464300ea URL:
https://source.winehq.org/git/wine.git/?a=commit;h=c332707df4b90803ff2e814f…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Sep 20 13:14:47 2021 +0200 gdi32: Handle scalable fonts directly in AddFontResourceExW and RemoveFontResourceExW. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/gdi32/font.c | 101 -------------------------------------------------- dlls/gdi32/text.c | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 107 insertions(+), 103 deletions(-) diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c index 224dc6b3a77..07b4d248261 100644 --- a/dlls/gdi32/font.c +++ b/dlls/gdi32/font.c @@ -5560,91 +5560,6 @@ static BOOL CALLBACK load_enumed_resource(HMODULE hModule, LPCWSTR type, LPWSTR return TRUE; } -static void *map_file( const WCHAR *filename, LARGE_INTEGER *size ) -{ - HANDLE file, mapping; - void *ptr; - - file = CreateFileW( filename, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); - if (file == INVALID_HANDLE_VALUE) return NULL; - - if (!GetFileSizeEx( file, size ) || size->u.HighPart) - { - CloseHandle( file ); - return NULL; - } - - mapping = CreateFileMappingW( file, NULL, PAGE_READONLY, 0, 0, NULL ); - CloseHandle( file ); - if (!mapping) return NULL; - - ptr = MapViewOfFile( mapping, FILE_MAP_READ, 0, 0, 0 ); - CloseHandle( mapping ); - - return ptr; -} - -static void *find_resource( BYTE *ptr, WORD type, DWORD rsrc_off, DWORD size, DWORD *len ) -{ - WORD align, type_id, count; - DWORD res_off; - - if (size < rsrc_off + 10) return NULL; - align = *(WORD *)(ptr + rsrc_off); - rsrc_off += 2; - type_id = *(WORD *)(ptr + rsrc_off); - while (type_id && type_id != type) - { - count = *(WORD *)(ptr + rsrc_off + 2); - rsrc_off += 8 + count * 12; - if (size < rsrc_off + 8) return NULL; - type_id = *(WORD *)(ptr + rsrc_off); - } - if (!type_id) return NULL; - count = *(WORD *)(ptr + rsrc_off + 2); - if (size < rsrc_off + 8 + count * 12) return NULL; - res_off = *(WORD *)(ptr + rsrc_off + 8) << align; - *len = *(WORD *)(ptr + rsrc_off + 10) << align; - if (size < res_off + *len) return NULL; - return ptr + res_off; -} - -static WCHAR *get_scalable_filename( const WCHAR *res, BOOL *hidden ) -{ - LARGE_INTEGER size; - BYTE *ptr = map_file( res, &size ); - const IMAGE_DOS_HEADER *dos; - const IMAGE_OS2_HEADER *ne; - WORD *fontdir; - char *data; - WCHAR *name = NULL; - DWORD len; - - if (!ptr) return NULL; - - if (size.u.LowPart < sizeof( *dos )) goto fail; - dos = (const IMAGE_DOS_HEADER *)ptr; - if (dos->e_magic != IMAGE_DOS_SIGNATURE) goto fail; - if (size.u.LowPart < dos->e_lfanew + sizeof( *ne )) goto fail; - ne = (const IMAGE_OS2_HEADER *)(ptr + dos->e_lfanew); - - fontdir = find_resource( ptr, 0x8007, dos->e_lfanew + ne->ne_rsrctab, size.u.LowPart, &len ); - if (!fontdir) goto fail; - *hidden = (fontdir[35] & 0x80) != 0; /* fontdir->dfType */ - - data = find_resource( ptr, 0x80cc, dos->e_lfanew + ne->ne_rsrctab, size.u.LowPart, &len ); - if (!data) goto fail; - if (!memchr( data, 0, len )) goto fail; - - len = MultiByteToWideChar( CP_ACP, 0, data, -1, NULL, 0 ); - name = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) ); - if (name) MultiByteToWideChar( CP_ACP, 0, data, -1, name, len ); - -fail: - UnmapViewOfFile( ptr ); - return name; -} - static int add_system_font_resource( const WCHAR *file, DWORD flags ) { WCHAR path[MAX_PATH]; @@ -5967,8 +5882,6 @@ INT WINAPI NtGdiAddFontResourceW( const WCHAR *str, ULONG size, ULONG files, DWO DWORD tid, void *dv ) { int ret; - WCHAR *filename; - BOOL hidden; if (!font_funcs) return 1; if (!(ret = add_font_resource( str, flags ))) @@ -5986,12 +5899,6 @@ INT WINAPI NtGdiAddFontResourceW( const WCHAR *str, ULONG size, ULONG files, DWO ret = num_resources; FreeLibrary(hModule); } - else if ((filename = get_scalable_filename( str, &hidden )) != NULL) - { - if (hidden) flags |= FR_PRIVATE | FR_NOT_ENUM; - ret = add_font_resource( filename, flags ); - HeapFree( GetProcessHeap(), 0, filename ); - } } return ret; } @@ -6061,8 +5968,6 @@ BOOL WINAPI NtGdiRemoveFontResourceW( const WCHAR *str, ULONG size, ULONG files, DWORD tid, void *dv ) { int ret; - WCHAR *filename; - BOOL hidden; if (!font_funcs) return TRUE; @@ -6075,12 +5980,6 @@ BOOL WINAPI NtGdiRemoveFontResourceW( const WCHAR *str, ULONG size, ULONG files, WARN("Can't unload resources from PE file %s\n", wine_dbgstr_w(str)); FreeLibrary(hModule); } - else if ((filename = get_scalable_filename( str, &hidden )) != NULL) - { - if (hidden) flags |= FR_PRIVATE | FR_NOT_ENUM; - ret = remove_font_resource( filename, flags ); - HeapFree( GetProcessHeap(), 0, filename ); - } } return ret; } diff --git a/dlls/gdi32/text.c b/dlls/gdi32/text.c index b7c6706ef22..41333903c0c 100644 --- a/dlls/gdi32/text.c +++ b/dlls/gdi32/text.c @@ -2300,12 +2300,107 @@ BOOL WINAPI RemoveFontResourceExA( const char *str, DWORD fl, void *pdv ) return ret; } +static void *map_file( const WCHAR *filename, LARGE_INTEGER *size ) +{ + HANDLE file, mapping; + void *ptr; + + file = CreateFileW( filename, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); + if (file == INVALID_HANDLE_VALUE) return NULL; + + if (!GetFileSizeEx( file, size ) || size->u.HighPart) + { + CloseHandle( file ); + return NULL; + } + + mapping = CreateFileMappingW( file, NULL, PAGE_READONLY, 0, 0, NULL ); + CloseHandle( file ); + if (!mapping) return NULL; + + ptr = MapViewOfFile( mapping, FILE_MAP_READ, 0, 0, 0 ); + CloseHandle( mapping ); + + return ptr; +} + +static void *find_resource( BYTE *ptr, WORD type, DWORD rsrc_off, DWORD size, DWORD *len ) +{ + WORD align, type_id, count; + DWORD res_off; + + if (size < rsrc_off + 10) return NULL; + align = *(WORD *)(ptr + rsrc_off); + rsrc_off += 2; + type_id = *(WORD *)(ptr + rsrc_off); + while (type_id && type_id != type) + { + count = *(WORD *)(ptr + rsrc_off + 2); + rsrc_off += 8 + count * 12; + if (size < rsrc_off + 8) return NULL; + type_id = *(WORD *)(ptr + rsrc_off); + } + if (!type_id) return NULL; + count = *(WORD *)(ptr + rsrc_off + 2); + if (size < rsrc_off + 8 + count * 12) return NULL; + res_off = *(WORD *)(ptr + rsrc_off + 8) << align; + *len = *(WORD *)(ptr + rsrc_off + 10) << align; + if (size < res_off + *len) return NULL; + return ptr + res_off; +} + +static WCHAR *get_scalable_filename( const WCHAR *res, BOOL *hidden ) +{ + LARGE_INTEGER size; + BYTE *ptr = map_file( res, &size ); + const IMAGE_DOS_HEADER *dos; + const IMAGE_OS2_HEADER *ne; + WORD *fontdir; + char *data; + WCHAR *name = NULL; + DWORD len; + + if (!ptr) return NULL; + + if (size.u.LowPart < sizeof( *dos )) goto fail; + dos = (const IMAGE_DOS_HEADER *)ptr; + if (dos->e_magic != IMAGE_DOS_SIGNATURE) goto fail; + if (size.u.LowPart < dos->e_lfanew + sizeof( *ne )) goto fail; + ne = (const IMAGE_OS2_HEADER *)(ptr + dos->e_lfanew); + + fontdir = find_resource( ptr, 0x8007, dos->e_lfanew + ne->ne_rsrctab, size.u.LowPart, &len ); + if (!fontdir) goto fail; + *hidden = (fontdir[35] & 0x80) != 0; /* fontdir->dfType */ + + data = find_resource( ptr, 0x80cc, dos->e_lfanew + ne->ne_rsrctab, size.u.LowPart, &len ); + if (!data) goto fail; + if (!memchr( data, 0, len )) goto fail; + + len = MultiByteToWideChar( CP_ACP, 0, data, -1, NULL, 0 ); + name = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) ); + if (name) MultiByteToWideChar( CP_ACP, 0, data, -1, name, len ); + +fail: + UnmapViewOfFile( ptr ); + return name; +} + /*********************************************************************** * AddFontResourceExW (GDI32.@) */ INT WINAPI AddFontResourceExW( const WCHAR *str, DWORD flags, void *dv ) { - return NtGdiAddFontResourceW( str, 0, 1, flags, 0, dv ); + WCHAR *filename = NULL; + BOOL hidden; + INT ret; + + if ((ret = NtGdiAddFontResourceW( str, 0, 1, flags, 0, dv ))) return ret; + + if (!(filename = get_scalable_filename( str, &hidden ))) return 0; + if (hidden) flags |= FR_PRIVATE | FR_NOT_ENUM; + ret = NtGdiAddFontResourceW( filename, 0, 1, flags, 0, dv ); + HeapFree( GetProcessHeap(), 0, filename ); + return ret; } /*********************************************************************** @@ -2313,7 +2408,17 @@ INT WINAPI AddFontResourceExW( const WCHAR *str, DWORD flags, void *dv ) */ BOOL WINAPI RemoveFontResourceExW( const WCHAR *str, DWORD flags, void *dv ) { - return NtGdiRemoveFontResourceW( str, 0, 1, flags, 0, dv ); + WCHAR *filename = NULL; + BOOL hidden; + INT ret; + + if ((ret = NtGdiRemoveFontResourceW( str, 0, 1, flags, 0, dv ))) return ret; + + if (!(filename = get_scalable_filename( str, &hidden ))) return 0; + if (hidden) flags |= FR_PRIVATE | FR_NOT_ENUM; + ret = NtGdiRemoveFontResourceW( filename, 0, 1, flags, 0, dv ); + HeapFree( GetProcessHeap(), 0, filename ); + return ret; } /***********************************************************************
1
0
0
0
Jacek Caban : gdi32: Move CreateScalableFontResourceW to text.c.
by Alexandre Julliard
20 Sep '21
20 Sep '21
Module: wine Branch: master Commit: 0d35d2aa19d562dea8b62405fba01a37d0daf7a3 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=0d35d2aa19d562dea8b62405…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Sep 20 13:14:14 2021 +0200 gdi32: Move CreateScalableFontResourceW to text.c. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/gdi32/font.c | 248 +--------------------------------------------- dlls/gdi32/gdi_private.h | 2 + dlls/gdi32/text.c | 251 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 257 insertions(+), 244 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=0d35d2aa19d562dea8b6…
1
0
0
0
Jacek Caban : gdi32: Move load_script_name call to EnumFontFamiliesExW.
by Alexandre Julliard
20 Sep '21
20 Sep '21
Module: wine Branch: master Commit: c5d71400546706f9fa38275a629ec1a8c8fc9b07 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=c5d71400546706f9fa38275a…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Sep 20 13:13:47 2021 +0200 gdi32: Move load_script_name call to EnumFontFamiliesExW. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/gdi32/font.c | 32 ++++---------------------------- dlls/gdi32/gdi_private.h | 2 ++ dlls/gdi32/text.c | 25 +++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 28 deletions(-) diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c index 839244545cb..95a6bad3b92 100644 --- a/dlls/gdi32/font.c +++ b/dlls/gdi32/font.c @@ -32,7 +32,6 @@ #include "winternl.h" #include "winreg.h" #include "ntgdi_private.h" -#include "resource.h" #include "wine/exception.h" #include "wine/heap.h" #include "wine/rbtree.h" @@ -2589,29 +2588,6 @@ struct enum_charset DWORD script; }; -static int load_script_name( UINT id, WCHAR buffer[LF_FACESIZE] ) -{ - HRSRC rsrc; - HGLOBAL hMem; - WCHAR *p; - int i; - - id += IDS_FIRST_SCRIPT; - rsrc = FindResourceW( gdi32_module, (LPCWSTR)(ULONG_PTR)((id >> 4) + 1), (LPCWSTR)6 /*RT_STRING*/ ); - if (!rsrc) return 0; - hMem = LoadResource( gdi32_module, rsrc ); - if (!hMem) return 0; - - p = LockResource( hMem ); - id &= 0x000f; - while (id--) p += *p + 1; - - i = min(LF_FACESIZE - 1, *p); - memcpy(buffer, p + 1, i * sizeof(WCHAR)); - buffer[i] = 0; - return i; -} - static BOOL is_complex_script_ansi_cp( UINT ansi_cp ) { return (ansi_cp == 874 /* Thai */ @@ -2678,7 +2654,7 @@ static DWORD create_enum_charset_list(DWORD charset, struct enum_charset *list) { list->mask = ~mask; list->charset = DEFAULT_CHARSET; - list->script = IDS_OTHER - IDS_FIRST_SCRIPT; + list->script = 33; /* other */ list++; } } @@ -2834,7 +2810,7 @@ static BOOL enum_face_charsets( const struct gdi_font_family *family, struct gdi if (face->fs.fsCsb[0] == 0) /* OEM */ { elf.elfLogFont.lfCharSet = ntm.ntmTm.tmCharSet = OEM_CHARSET; - load_script_name( IDS_OEM_DOS - IDS_FIRST_SCRIPT, elf.elfScript ); + elf.elfScript[0] = 32; i = count; /* break out of loop after enumeration */ } else @@ -2843,8 +2819,8 @@ static BOOL enum_face_charsets( const struct gdi_font_family *family, struct gdi /* use the DEFAULT_CHARSET case only if no other charset is present */ if (list[i].charset == DEFAULT_CHARSET && (face->fs.fsCsb[0] & ~list[i].mask)) continue; elf.elfLogFont.lfCharSet = ntm.ntmTm.tmCharSet = list[i].charset; - load_script_name( list[i].script, elf.elfScript ); - if (!elf.elfScript[0]) FIXME("Unknown elfscript for id %u\n", list[i].script); + /* caller may fill elfScript with the actual string, see load_script_name */ + elf.elfScript[0] = list[i].script; } TRACE( "face %s full %s style %s charset = %d type %d script %s it %d weight %d ntmflags %08x\n", debugstr_w(elf.elfLogFont.lfFaceName), debugstr_w(elf.elfFullName), debugstr_w(elf.elfStyle), diff --git a/dlls/gdi32/gdi_private.h b/dlls/gdi32/gdi_private.h index 238ae3b7de1..cf09cf85ad4 100644 --- a/dlls/gdi32/gdi_private.h +++ b/dlls/gdi32/gdi_private.h @@ -299,4 +299,6 @@ static inline int get_dib_info_size( const BITMAPINFO *info, UINT coloruse ) return FIELD_OFFSET( BITMAPINFO, bmiColors[info->bmiHeader.biClrUsed] ); } +extern HMODULE gdi32_module DECLSPEC_HIDDEN; + #endif /* __WINE_GDI_PRIVATE_H */ diff --git a/dlls/gdi32/text.c b/dlls/gdi32/text.c index 4037eaa4b65..641c15aab70 100644 --- a/dlls/gdi32/text.c +++ b/dlls/gdi32/text.c @@ -54,6 +54,7 @@ #include "usp10.h" #include "wine/debug.h" #include "gdi_private.h" +#include "resource.h" WINE_DEFAULT_DEBUG_CHANNEL(bidi); @@ -2037,6 +2038,29 @@ BOOL WINAPI GdiRealizationInfo( HDC hdc, struct realization_info *info ) return TRUE; } +static void load_script_name( UINT id, WCHAR buffer[LF_FACESIZE] ) +{ + HRSRC rsrc; + HGLOBAL hMem; + WCHAR *p; + int i; + + id += IDS_FIRST_SCRIPT; + buffer[0] = 0; + rsrc = FindResourceW( gdi32_module, (LPCWSTR)(ULONG_PTR)((id >> 4) + 1), (LPCWSTR)6 /*RT_STRING*/ ); + if (!rsrc) return; + hMem = LoadResource( gdi32_module, rsrc ); + if (!hMem) return; + + p = LockResource( hMem ); + id &= 0x000f; + while (id--) p += *p + 1; + + i = min( LF_FACESIZE - 1, *p ); + memcpy( buffer, p + 1, i * sizeof(WCHAR) ); + buffer[i] = 0; +} + /*********************************************************************** * EnumFontFamiliesExW (GDI32.@) */ @@ -2072,6 +2096,7 @@ INT WINAPI EnumFontFamiliesExW( HDC hdc, LOGFONTW *lf, FONTENUMPROCW efproc, count /= sizeof(*entries); for (i = 0; ret && i < count; i++) { + load_script_name( entries[i].lf.elfScript[0], entries[i].lf.elfScript ); ret = efproc( (const LOGFONTW *)&entries[i].lf, (const TEXTMETRICW *)&entries[i].tm, entries[i].type, lparam ); }
1
0
0
0
Jacek Caban : include: Add some missing ntgdi declarations.
by Alexandre Julliard
20 Sep '21
20 Sep '21
Module: wine Branch: master Commit: c630576b47c7fbe109936c50e645822df7b20451 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=c630576b47c7fbe109936c50…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Sep 20 13:12:53 2021 +0200 include: Add some missing ntgdi declarations. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/gdi32/driver.c | 8 +++---- include/d3dukmdt.h | 13 ++++++++++ include/ddk/d3dkmthk.h | 27 +++++++++++++++++++++ include/ntgdi.h | 64 +++++++++++++++++++++++++++----------------------- 4 files changed, 79 insertions(+), 33 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=c630576b47c7fbe10993…
1
0
0
0
Alexandre Julliard : winegcc: Skip the post-link steps for Unix libraries.
by Alexandre Julliard
20 Sep '21
20 Sep '21
Module: wine Branch: master Commit: 20830b6c7007d56961c1d11d077c2d09a40612ae URL:
https://source.winehq.org/git/wine.git/?a=commit;h=20830b6c7007d56961c1d11d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 20 16:17:36 2021 +0200 winegcc: Skip the post-link steps for Unix libraries. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tools/winegcc/winegcc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index 3877a19e173..ff37cb75576 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -1517,6 +1517,8 @@ static void build(struct options* opts) strarray_free(tool); } + if (opts->unix_lib) return; + if (opts->out_implib && !is_pe) { if (!spec_file)
1
0
0
0
Alexandre Julliard : makefiles: Make -mno-cygwin the default.
by Alexandre Julliard
20 Sep '21
20 Sep '21
Module: wine Branch: master Commit: 088a787a2cd45ea70e4439251a279260401e9287 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=088a787a2cd45ea70e443925…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 20 17:03:48 2021 +0200 makefiles: Make -mno-cygwin the default. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/acledit/Makefile.in | 2 +- dlls/aclui/Makefile.in | 2 +- dlls/activeds/Makefile.in | 2 +- dlls/actxprxy/Makefile.in | 2 -- dlls/adsldp/Makefile.in | 2 +- dlls/advapi32/Makefile.in | 2 -- dlls/advpack/Makefile.in | 2 -- dlls/amsi/Makefile.in | 2 -- dlls/amstream/Makefile.in | 2 -- dlls/apphelp/Makefile.in | 2 +- dlls/appwiz.cpl/Makefile.in | 2 -- dlls/atl/Makefile.in | 2 -- dlls/atl100/Makefile.in | 2 -- dlls/atl110/Makefile.in | 2 -- dlls/atl80/Makefile.in | 2 -- dlls/atl90/Makefile.in | 2 -- dlls/atlthunk/Makefile.in | 2 -- dlls/atmlib/Makefile.in | 2 +- dlls/authz/Makefile.in | 2 +- dlls/avicap32/Makefile.in | 2 -- dlls/avifil32/Makefile.in | 2 -- dlls/avrt/Makefile.in | 2 +- dlls/bcrypt/Makefile.in | 2 -- dlls/browseui/Makefile.in | 2 +- dlls/bthprops.cpl/Makefile.in | 2 -- dlls/cabinet/Makefile.in | 2 -- dlls/cards/Makefile.in | 2 -- dlls/cdosys/Makefile.in | 2 -- dlls/clusapi/Makefile.in | 2 +- dlls/combase/Makefile.in | 2 -- dlls/comctl32/Makefile.in | 2 -- dlls/comdlg32/Makefile.in | 2 -- dlls/compstui/Makefile.in | 2 +- dlls/comsvcs/Makefile.in | 2 +- dlls/concrt140/Makefile.in | 1 - dlls/connect/Makefile.in | 2 +- dlls/credui/Makefile.in | 2 +- dlls/crtdll/Makefile.in | 1 - dlls/crypt32/Makefile.in | 2 -- dlls/cryptdlg/Makefile.in | 2 +- dlls/cryptext/Makefile.in | 2 +- dlls/cryptnet/Makefile.in | 2 -- dlls/cryptui/Makefile.in | 2 +- dlls/ctl3d32/Makefile.in | 2 -- dlls/d2d1/Makefile.in | 2 -- dlls/d3d10/Makefile.in | 2 -- dlls/d3d10_1/Makefile.in | 2 -- dlls/d3d10core/Makefile.in | 2 -- dlls/d3d11/Makefile.in | 2 -- dlls/d3d8/Makefile.in | 2 -- dlls/d3d9/Makefile.in | 2 -- dlls/d3dcompiler_33/Makefile.in | 2 +- dlls/d3dcompiler_34/Makefile.in | 2 +- dlls/d3dcompiler_35/Makefile.in | 2 +- dlls/d3dcompiler_36/Makefile.in | 2 +- dlls/d3dcompiler_37/Makefile.in | 2 +- dlls/d3dcompiler_38/Makefile.in | 2 +- dlls/d3dcompiler_39/Makefile.in | 2 +- dlls/d3dcompiler_40/Makefile.in | 2 +- dlls/d3dcompiler_41/Makefile.in | 2 +- dlls/d3dcompiler_42/Makefile.in | 2 +- dlls/d3dcompiler_43/Makefile.in | 2 +- dlls/d3dcompiler_46/Makefile.in | 2 +- dlls/d3dcompiler_47/Makefile.in | 2 +- dlls/d3drm/Makefile.in | 2 +- dlls/d3dx10_33/Makefile.in | 2 +- dlls/d3dx10_34/Makefile.in | 2 +- dlls/d3dx10_35/Makefile.in | 2 +- dlls/d3dx10_36/Makefile.in | 2 +- dlls/d3dx10_37/Makefile.in | 2 +- dlls/d3dx10_38/Makefile.in | 2 +- dlls/d3dx10_39/Makefile.in | 2 +- dlls/d3dx10_40/Makefile.in | 2 +- dlls/d3dx10_41/Makefile.in | 2 +- dlls/d3dx10_42/Makefile.in | 2 +- dlls/d3dx10_43/Makefile.in | 2 +- dlls/d3dx11_42/Makefile.in | 2 +- dlls/d3dx11_43/Makefile.in | 2 +- dlls/d3dx9_24/Makefile.in | 2 +- dlls/d3dx9_25/Makefile.in | 2 +- dlls/d3dx9_26/Makefile.in | 2 +- dlls/d3dx9_27/Makefile.in | 2 +- dlls/d3dx9_28/Makefile.in | 2 +- dlls/d3dx9_29/Makefile.in | 2 +- dlls/d3dx9_30/Makefile.in | 2 +- dlls/d3dx9_31/Makefile.in | 2 +- dlls/d3dx9_32/Makefile.in | 2 +- dlls/d3dx9_33/Makefile.in | 2 +- dlls/d3dx9_34/Makefile.in | 2 +- dlls/d3dx9_35/Makefile.in | 2 +- dlls/d3dx9_36/Makefile.in | 2 +- dlls/d3dx9_37/Makefile.in | 2 +- dlls/d3dx9_38/Makefile.in | 2 +- dlls/d3dx9_39/Makefile.in | 2 +- dlls/d3dx9_40/Makefile.in | 2 +- dlls/d3dx9_41/Makefile.in | 2 +- dlls/d3dx9_42/Makefile.in | 2 +- dlls/d3dx9_43/Makefile.in | 2 +- dlls/d3dxof/Makefile.in | 2 -- dlls/davclnt/Makefile.in | 2 +- dlls/dbgeng/Makefile.in | 2 -- dlls/dbghelp/Makefile.in | 2 -- dlls/dciman32/Makefile.in | 2 -- dlls/dcomp/Makefile.in | 2 +- dlls/ddraw/Makefile.in | 2 -- dlls/ddrawex/Makefile.in | 2 -- dlls/devenum/Makefile.in | 2 -- dlls/dhcpcsvc/Makefile.in | 2 +- dlls/dhtmled.ocx/Makefile.in | 2 -- dlls/difxapi/Makefile.in | 2 -- dlls/directmanipulation/Makefile.in | 2 +- dlls/dispex/Makefile.in | 2 -- dlls/dmband/Makefile.in | 2 -- dlls/dmcompos/Makefile.in | 2 -- dlls/dmime/Makefile.in | 2 -- dlls/dmloader/Makefile.in | 2 -- dlls/dmscript/Makefile.in | 2 -- dlls/dmstyle/Makefile.in | 2 -- dlls/dmsynth/Makefile.in | 2 -- dlls/dmusic/Makefile.in | 2 -- dlls/dmusic32/Makefile.in | 2 -- dlls/dnsapi/Makefile.in | 2 -- dlls/dplayx/Makefile.in | 2 -- dlls/dpnet/Makefile.in | 2 -- dlls/dpnhpast/Makefile.in | 2 -- dlls/dpnhupnp/Makefile.in | 2 +- dlls/dpvoice/Makefile.in | 2 +- dlls/dpwsockx/Makefile.in | 2 +- dlls/dsdmo/Makefile.in | 2 +- dlls/dsound/Makefile.in | 2 -- dlls/dsquery/Makefile.in | 2 -- dlls/dssenh/Makefile.in | 2 -- dlls/dsuiext/Makefile.in | 2 -- dlls/dswave/Makefile.in | 2 -- dlls/dwmapi/Makefile.in | 2 +- dlls/dwrite/Makefile.in | 2 -- dlls/dx8vb/Makefile.in | 2 +- dlls/dxdiagn/Makefile.in | 2 -- dlls/dxva2/Makefile.in | 2 +- dlls/evr/Makefile.in | 2 +- dlls/explorerframe/Makefile.in | 2 -- dlls/faultrep/Makefile.in | 2 +- dlls/fltlib/Makefile.in | 2 +- dlls/fltmgr.sys/Makefile.in | 2 +- dlls/fntcache/Makefile.in | 2 +- dlls/fontsub/Makefile.in | 2 +- dlls/fusion/Makefile.in | 2 -- dlls/fwpuclnt/Makefile.in | 2 +- dlls/gameux/Makefile.in | 2 -- dlls/gamingtcui/Makefile.in | 2 -- dlls/gdi32/Makefile.in | 2 -- dlls/gdiplus/Makefile.in | 2 -- dlls/glu32/Makefile.in | 2 +- dlls/hal/Makefile.in | 2 -- dlls/hhctrl.ocx/Makefile.in | 2 -- dlls/hid/Makefile.in | 2 +- dlls/hidclass.sys/Makefile.in | 2 -- dlls/hidparse.sys/Makefile.in | 1 - dlls/hlink/Makefile.in | 2 -- dlls/hnetcfg/Makefile.in | 2 +- dlls/http.sys/Makefile.in | 3 ++- dlls/httpapi/Makefile.in | 2 -- dlls/iccvid/Makefile.in | 2 -- dlls/ieframe/Makefile.in | 2 -- dlls/ieproxy/Makefile.in | 2 -- dlls/ifsmgr.vxd/Makefile.in | 2 -- dlls/imaadp32.acm/Makefile.in | 2 -- dlls/imagehlp/Makefile.in | 2 -- dlls/imm32/Makefile.in | 2 -- dlls/inetcomm/Makefile.in | 2 +- dlls/inetcpl.cpl/Makefile.in | 2 +- dlls/inetmib1/Makefile.in | 2 -- dlls/infosoft/Makefile.in | 2 +- dlls/inkobj/Makefile.in | 2 +- dlls/inseng/Makefile.in | 2 +- dlls/itss/Makefile.in | 2 -- dlls/joy.cpl/Makefile.in | 2 +- dlls/jscript/Makefile.in | 2 -- dlls/jsproxy/Makefile.in | 2 -- dlls/kerberos/Makefile.in | 2 -- dlls/kernel32/Makefile.in | 3 ++- dlls/kernelbase/Makefile.in | 3 ++- dlls/ksecdd.sys/Makefile.in | 3 ++- dlls/ksproxy.ax/Makefile.in | 2 -- dlls/ktmw32/Makefile.in | 2 -- dlls/loadperf/Makefile.in | 2 +- dlls/localspl/Makefile.in | 2 +- dlls/localui/Makefile.in | 2 -- dlls/mapi32/Makefile.in | 2 -- dlls/mciavi32/Makefile.in | 2 -- dlls/mcicda/Makefile.in | 2 -- dlls/mciqtz32/Makefile.in | 2 -- dlls/mciseq/Makefile.in | 2 -- dlls/mciwave/Makefile.in | 2 -- dlls/mf/Makefile.in | 2 +- dlls/mfmediaengine/Makefile.in | 2 +- dlls/mfplat/Makefile.in | 2 +- dlls/mfplay/Makefile.in | 2 +- dlls/mfreadwrite/Makefile.in | 2 +- dlls/mgmtapi/Makefile.in | 2 +- dlls/midimap/Makefile.in | 2 -- dlls/mlang/Makefile.in | 2 -- dlls/mmcndmgr/Makefile.in | 2 +- dlls/mmdevapi/Makefile.in | 2 -- dlls/mmdevldr.vxd/Makefile.in | 2 -- dlls/monodebg.vxd/Makefile.in | 2 -- dlls/mpr/Makefile.in | 2 -- dlls/mprapi/Makefile.in | 2 +- dlls/msacm32.drv/Makefile.in | 2 -- dlls/msacm32/Makefile.in | 2 -- dlls/msado15/Makefile.in | 2 -- dlls/msadp32.acm/Makefile.in | 2 -- dlls/msasn1/Makefile.in | 2 +- dlls/mscms/Makefile.in | 2 -- dlls/mscoree/Makefile.in | 2 +- dlls/msctf/Makefile.in | 2 +- dlls/msctfp/Makefile.in | 2 -- dlls/msdaps/Makefile.in | 2 -- dlls/msdmo/Makefile.in | 2 -- dlls/msdrm/Makefile.in | 2 +- dlls/msftedit/Makefile.in | 2 +- dlls/msg711.acm/Makefile.in | 2 -- dlls/mshtml/Makefile.in | 2 -- dlls/msi/Makefile.in | 2 -- dlls/msident/Makefile.in | 2 +- dlls/msimg32/Makefile.in | 2 -- dlls/msimtf/Makefile.in | 2 +- dlls/msisip/Makefile.in | 2 +- dlls/msisys.ocx/Makefile.in | 2 -- dlls/msnet32/Makefile.in | 2 +- dlls/mspatcha/Makefile.in | 2 +- dlls/msrle32/Makefile.in | 2 -- dlls/msscript.ocx/Makefile.in | 2 +- dlls/mssign32/Makefile.in | 2 +- dlls/mstask/Makefile.in | 2 -- dlls/msv1_0/Makefile.in | 2 -- dlls/msvcirt/Makefile.in | 2 -- dlls/msvcm80/Makefile.in | 2 +- dlls/msvcm90/Makefile.in | 2 +- dlls/msvcp100/Makefile.in | 2 -- dlls/msvcp110/Makefile.in | 2 -- dlls/msvcp120/Makefile.in | 2 -- dlls/msvcp140/Makefile.in | 2 -- dlls/msvcp140_1/Makefile.in | 2 -- dlls/msvcp60/Makefile.in | 2 +- dlls/msvcp70/Makefile.in | 2 -- dlls/msvcp71/Makefile.in | 2 -- dlls/msvcp80/Makefile.in | 2 -- dlls/msvcp90/Makefile.in | 2 -- dlls/msvcr100/Makefile.in | 1 - dlls/msvcr110/Makefile.in | 1 - dlls/msvcr120/Makefile.in | 1 - dlls/msvcr70/Makefile.in | 1 - dlls/msvcr71/Makefile.in | 1 - dlls/msvcr80/Makefile.in | 1 - dlls/msvcr90/Makefile.in | 1 - dlls/msvcrt/Makefile.in | 1 - dlls/msvcrt20/Makefile.in | 2 -- dlls/msvcrtd/Makefile.in | 1 - dlls/msvfw32/Makefile.in | 2 -- dlls/msvidc32/Makefile.in | 2 -- dlls/mswsock/Makefile.in | 2 -- dlls/mtxdm/Makefile.in | 2 -- dlls/ncrypt/Makefile.in | 2 +- dlls/nddeapi/Makefile.in | 2 -- dlls/ndis.sys/Makefile.in | 3 ++- dlls/netapi32/Makefile.in | 2 -- dlls/netcfgx/Makefile.in | 2 +- dlls/netio.sys/Makefile.in | 3 ++- dlls/netprofm/Makefile.in | 2 +- dlls/newdev/Makefile.in | 2 -- dlls/ninput/Makefile.in | 2 +- dlls/npmshtml/Makefile.in | 2 -- dlls/nsi/Makefile.in | 2 -- dlls/ntdll/Makefile.in | 3 ++- dlls/ntdsapi/Makefile.in | 2 +- dlls/ntoskrnl.exe/Makefile.in | 2 -- dlls/ntprint/Makefile.in | 2 +- dlls/objsel/Makefile.in | 2 -- dlls/odbc32/Makefile.in | 2 -- dlls/odbccp32/Makefile.in | 2 -- dlls/ole32/Makefile.in | 2 -- dlls/oleacc/Makefile.in | 2 -- dlls/oleaut32/Makefile.in | 2 -- dlls/olecli32/Makefile.in | 2 -- dlls/oledb32/Makefile.in | 2 -- dlls/oledlg/Makefile.in | 2 -- dlls/olepro32/Makefile.in | 2 -- dlls/olesvr32/Makefile.in | 2 -- dlls/opcservices/Makefile.in | 2 -- dlls/opencl/Makefile.in | 2 -- dlls/packager/Makefile.in | 2 -- dlls/pdh/Makefile.in | 2 +- dlls/pidgen/Makefile.in | 2 +- dlls/powrprof/Makefile.in | 2 -- dlls/printui/Makefile.in | 2 +- dlls/prntvpt/Makefile.in | 2 +- dlls/propsys/Makefile.in | 2 +- dlls/pstorec/Makefile.in | 2 +- dlls/pwrshplugin/Makefile.in | 2 -- dlls/qasf/Makefile.in | 2 -- dlls/qcap/Makefile.in | 2 -- dlls/qdvd/Makefile.in | 2 +- dlls/qedit/Makefile.in | 2 -- dlls/qmgr/Makefile.in | 2 +- dlls/qmgrprxy/Makefile.in | 2 -- dlls/quartz/Makefile.in | 2 -- dlls/query/Makefile.in | 2 +- dlls/qwave/Makefile.in | 2 +- dlls/rasapi32/Makefile.in | 2 -- dlls/rasdlg/Makefile.in | 2 +- dlls/riched20/Makefile.in | 3 ++- dlls/riched32/Makefile.in | 2 -- dlls/rpcrt4/Makefile.in | 2 -- dlls/rsaenh/Makefile.in | 2 -- dlls/rstrtmgr/Makefile.in | 2 +- dlls/rtutils/Makefile.in | 2 +- dlls/rtworkq/Makefile.in | 2 -- dlls/sapi/Makefile.in | 2 -- dlls/schannel/Makefile.in | 2 +- dlls/schedsvc/Makefile.in | 2 -- dlls/scrobj/Makefile.in | 2 +- dlls/scrrun/Makefile.in | 2 +- dlls/scsiport.sys/Makefile.in | 3 ++- dlls/sechost/Makefile.in | 2 -- dlls/secur32/Makefile.in | 2 -- dlls/sensapi/Makefile.in | 2 -- dlls/serialui/Makefile.in | 2 -- dlls/setupapi/Makefile.in | 2 -- dlls/sfc_os/Makefile.in | 2 +- dlls/shcore/Makefile.in | 2 +- dlls/shdocvw/Makefile.in | 2 -- dlls/shell32/Makefile.in | 2 -- dlls/shlwapi/Makefile.in | 2 -- dlls/slc/Makefile.in | 2 +- dlls/snmpapi/Makefile.in | 2 +- dlls/spoolss/Makefile.in | 2 +- dlls/sppc/Makefile.in | 2 +- dlls/sspicli/Makefile.in | 2 -- dlls/sti/Makefile.in | 2 +- dlls/sxs/Makefile.in | 2 +- dlls/t2embed/Makefile.in | 2 +- dlls/tapi32/Makefile.in | 2 -- dlls/taskschd/Makefile.in | 2 +- dlls/tbs/Makefile.in | 2 -- dlls/tdh/Makefile.in | 2 +- dlls/tdi.sys/Makefile.in | 2 +- dlls/traffic/Makefile.in | 2 +- dlls/twain_32/Makefile.in | 2 -- dlls/ucrtbase/Makefile.in | 1 - dlls/uianimation/Makefile.in | 2 +- dlls/uiautomationcore/Makefile.in | 2 +- dlls/uiribbon/Makefile.in | 2 -- dlls/updspapi/Makefile.in | 2 -- dlls/url/Makefile.in | 2 +- dlls/urlmon/Makefile.in | 2 -- dlls/usbd.sys/Makefile.in | 3 ++- dlls/user32/Makefile.in | 2 -- dlls/userenv/Makefile.in | 2 +- dlls/uxtheme/Makefile.in | 2 -- dlls/vbscript/Makefile.in | 2 +- dlls/vcomp/Makefile.in | 2 -- dlls/vcomp100/Makefile.in | 3 --- dlls/vcomp110/Makefile.in | 3 --- dlls/vcomp120/Makefile.in | 3 --- dlls/vcomp140/Makefile.in | 3 --- dlls/vcruntime140/Makefile.in | 2 -- dlls/vcruntime140_1/Makefile.in | 2 -- dlls/vdhcp.vxd/Makefile.in | 2 -- dlls/vdmdbg/Makefile.in | 2 +- dlls/version/Makefile.in | 2 -- dlls/virtdisk/Makefile.in | 2 +- dlls/vmm.vxd/Makefile.in | 2 -- dlls/vnbt.vxd/Makefile.in | 2 -- dlls/vnetbios.vxd/Makefile.in | 2 -- dlls/vssapi/Makefile.in | 2 -- dlls/vtdapi.vxd/Makefile.in | 2 -- dlls/vwin32.vxd/Makefile.in | 2 -- dlls/w32skrnl/Makefile.in | 2 -- dlls/wbemdisp/Makefile.in | 2 +- dlls/wbemprox/Makefile.in | 2 -- dlls/webservices/Makefile.in | 2 -- dlls/wer/Makefile.in | 2 +- dlls/wevtapi/Makefile.in | 2 +- dlls/wevtsvc/Makefile.in | 2 -- dlls/wiaservc/Makefile.in | 2 +- dlls/wimgapi/Makefile.in | 2 +- dlls/win32u/Makefile.in | 2 +- dlls/windows.gaming.input/Makefile.in | 2 -- dlls/windows.globalization/Makefile.in | 2 -- dlls/windows.media.devices/Makefile.in | 2 -- dlls/windows.media.speech/Makefile.in | 2 -- dlls/windowscodecs/Makefile.in | 2 -- dlls/windowscodecsext/Makefile.in | 2 +- dlls/winebus.sys/Makefile.in | 3 ++- dlls/winegstreamer/Makefile.in | 2 -- dlls/winehid.sys/Makefile.in | 3 ++- dlls/winemapi/Makefile.in | 2 -- dlls/wineps.drv/Makefile.in | 2 -- dlls/winepulse.drv/Makefile.in | 2 -- dlls/winevulkan/Makefile.in | 2 -- dlls/winexinput.sys/Makefile.in | 2 +- dlls/wing32/Makefile.in | 2 -- dlls/winhttp/Makefile.in | 2 -- dlls/wininet/Makefile.in | 2 -- dlls/winmm/Makefile.in | 2 -- dlls/winnls32/Makefile.in | 2 +- dlls/winscard/Makefile.in | 2 -- dlls/winsta/Makefile.in | 2 +- dlls/wintab32/Makefile.in | 2 -- dlls/wintrust/Makefile.in | 2 -- dlls/wlanapi/Makefile.in | 2 +- dlls/wldap32/Makefile.in | 2 -- dlls/wmiutils/Makefile.in | 2 +- dlls/wmp/Makefile.in | 2 +- dlls/wmphoto/Makefile.in | 4 +-- dlls/wmvcore/Makefile.in | 2 +- dlls/wow32/Makefile.in | 2 -- dlls/wow64/Makefile.in | 2 +- dlls/wow64cpu/Makefile.in | 2 +- dlls/wow64win/Makefile.in | 2 +- dlls/wpc/Makefile.in | 2 +- dlls/wpcap/Makefile.in | 2 -- dlls/ws2_32/Makefile.in | 2 -- dlls/wsdapi/Makefile.in | 2 -- dlls/wshom.ocx/Makefile.in | 2 +- dlls/wsnmp32/Makefile.in | 2 +- dlls/wsock32/Makefile.in | 2 -- dlls/wtsapi32/Makefile.in | 2 -- dlls/wuapi/Makefile.in | 2 +- dlls/xinput1_1/Makefile.in | 2 -- dlls/xinput1_2/Makefile.in | 2 -- dlls/xinput1_3/Makefile.in | 2 -- dlls/xinput1_4/Makefile.in | 2 -- dlls/xinput9_1_0/Makefile.in | 2 -- dlls/xmllite/Makefile.in | 2 -- dlls/xolehlp/Makefile.in | 2 +- programs/arp/Makefile.in | 2 +- programs/aspnet_regiis/Makefile.in | 2 +- programs/attrib/Makefile.in | 2 +- programs/cabarc/Makefile.in | 2 +- programs/cacls/Makefile.in | 2 +-
programs/chcp.com/Makefile.in
| 2 +- programs/clock/Makefile.in | 2 +- programs/cmd/Makefile.in | 2 +- programs/conhost/Makefile.in | 2 +- programs/control/Makefile.in | 2 +- programs/cscript/Makefile.in | 2 +- programs/dism/Makefile.in | 2 +- programs/dplaysvr/Makefile.in | 2 +- programs/dpnsvr/Makefile.in | 2 +- programs/dpvsetup/Makefile.in | 2 +- programs/dxdiag/Makefile.in | 2 +- programs/eject/Makefile.in | 2 +- programs/expand/Makefile.in | 2 +- programs/explorer/Makefile.in | 2 +- programs/extrac32/Makefile.in | 2 +- programs/fc/Makefile.in | 2 +- programs/find/Makefile.in | 2 +- programs/findstr/Makefile.in | 2 +- programs/fsutil/Makefile.in | 2 +- programs/hh/Makefile.in | 2 +- programs/hostname/Makefile.in | 2 +- programs/icacls/Makefile.in | 2 +- programs/icinfo/Makefile.in | 2 +- programs/iexplore/Makefile.in | 2 +- programs/ipconfig/Makefile.in | 2 +- programs/lodctr/Makefile.in | 2 +- programs/mofcomp/Makefile.in | 2 +- programs/mshta/Makefile.in | 2 +- programs/msidb/Makefile.in | 2 +- programs/msiexec/Makefile.in | 2 +- programs/msinfo32/Makefile.in | 2 +- programs/net/Makefile.in | 2 +- programs/netsh/Makefile.in | 2 +- programs/netstat/Makefile.in | 2 +- programs/ngen/Makefile.in | 2 +- programs/notepad/Makefile.in | 2 +- programs/oleview/Makefile.in | 2 +- programs/ping/Makefile.in | 2 +- programs/plugplay/Makefile.in | 2 +- programs/powershell/Makefile.in | 2 +- programs/presentationfontcache/Makefile.in | 2 +- programs/progman/Makefile.in | 2 +- programs/reg/Makefile.in | 2 +- programs/regasm/Makefile.in | 2 +- programs/regedit/Makefile.in | 2 +- programs/regini/Makefile.in | 2 +- programs/regsvcs/Makefile.in | 2 +- programs/regsvr32/Makefile.in | 2 +- programs/rpcss/Makefile.in | 2 +- programs/rundll32/Makefile.in | 2 +- programs/sc/Makefile.in | 2 +- programs/schtasks/Makefile.in | 2 +- programs/sdbinst/Makefile.in | 2 +- programs/secedit/Makefile.in | 2 +- programs/servicemodelreg/Makefile.in | 2 +- programs/services/Makefile.in | 2 +- programs/shutdown/Makefile.in | 2 +- programs/spoolsv/Makefile.in | 2 +- programs/start/Makefile.in | 2 +- programs/subst/Makefile.in | 2 +- programs/svchost/Makefile.in | 2 +- programs/systeminfo/Makefile.in | 2 +- programs/taskkill/Makefile.in | 2 +- programs/tasklist/Makefile.in | 2 +- programs/taskmgr/Makefile.in | 2 +- programs/termsv/Makefile.in | 2 +- programs/uninstaller/Makefile.in | 2 +- programs/unlodctr/Makefile.in | 2 +- programs/view/Makefile.in | 2 +- programs/wevtutil/Makefile.in | 2 +- programs/where/Makefile.in | 2 +- programs/whoami/Makefile.in | 2 +- programs/wineboot/Makefile.in | 3 +-- programs/winecfg/Makefile.in | 3 +-- programs/wineconsole/Makefile.in | 3 +-- programs/winedevice/Makefile.in | 2 +- programs/winefile/Makefile.in | 2 +- programs/winemine/Makefile.in | 2 +- programs/winemsibuilder/Makefile.in | 2 +- programs/winepath/Makefile.in | 2 +- programs/winetest/Makefile.in | 2 +- programs/winhlp32/Makefile.in | 2 +- programs/winmgmt/Makefile.in | 2 +- programs/winver/Makefile.in | 2 +- programs/wmic/Makefile.in | 2 +- programs/wmplayer/Makefile.in | 2 +- programs/wordpad/Makefile.in | 2 +- programs/write/Makefile.in | 2 +- programs/wscript/Makefile.in | 2 +- programs/wuauserv/Makefile.in | 3 ++- programs/wusa/Makefile.in | 2 +- programs/xcopy/Makefile.in | 2 +- tools/makedep.c | 41 ++++-------------------------- 535 files changed, 309 insertions(+), 809 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=088a787a2cd45ea70e44…
1
0
0
0
Alexandre Julliard : makefiles: Add a -mcygwin flag to specify the inverse of -mno-cygwin.
by Alexandre Julliard
20 Sep '21
20 Sep '21
Module: wine Branch: master Commit: 6ba7773121fd3b65e48ba65b49e742ab9b061210 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=6ba7773121fd3b65e48ba65b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 20 16:58:11 2021 +0200 makefiles: Add a -mcygwin flag to specify the inverse of -mno-cygwin. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/capi2032/Makefile.in | 2 ++ dlls/ctapi32/Makefile.in | 2 ++ dlls/d3d12/Makefile.in | 2 ++ dlls/dinput/Makefile.in | 2 ++ dlls/dinput8/Makefile.in | 2 ++ dlls/dxgi/Makefile.in | 2 ++ dlls/gphoto2.ds/Makefile.in | 2 ++ dlls/iphlpapi/Makefile.in | 2 ++ dlls/l3codeca.acm/Makefile.in | 2 ++ dlls/mountmgr.sys/Makefile.in | 3 ++- dlls/mp3dmod/Makefile.in | 2 ++ dlls/msgsm32.acm/Makefile.in | 2 ++ dlls/msxml3/Makefile.in | 2 ++ dlls/nsiproxy.sys/Makefile.in | 3 ++- dlls/openal32/Makefile.in | 2 +- dlls/opengl32/Makefile.in | 3 ++- dlls/sane.ds/Makefile.in | 2 ++ dlls/winealsa.drv/Makefile.in | 2 ++ dlls/wineandroid.drv/Makefile.in | 2 ++ dlls/winecoreaudio.drv/Makefile.in | 2 ++ dlls/wined3d/Makefile.in | 2 ++ dlls/winejoystick.drv/Makefile.in | 2 ++ dlls/winemac.drv/Makefile.in | 2 ++ dlls/wineoss.drv/Makefile.in | 2 ++ dlls/wineqtdecoder/Makefile.in | 2 ++ dlls/wineusb.sys/Makefile.in | 3 ++- dlls/winex11.drv/Makefile.in | 2 ++ dlls/winspool.drv/Makefile.in | 2 ++ dlls/wnaspi32/Makefile.in | 2 ++ dlls/x3daudio1_0/Makefile.in | 2 ++ dlls/x3daudio1_1/Makefile.in | 2 ++ dlls/x3daudio1_2/Makefile.in | 2 ++ dlls/x3daudio1_3/Makefile.in | 2 ++ dlls/x3daudio1_4/Makefile.in | 2 ++ dlls/x3daudio1_5/Makefile.in | 2 ++ dlls/x3daudio1_6/Makefile.in | 2 ++ dlls/x3daudio1_7/Makefile.in | 2 ++ dlls/xactengine2_0/Makefile.in | 2 ++ dlls/xactengine2_4/Makefile.in | 2 ++ dlls/xactengine2_7/Makefile.in | 2 ++ dlls/xactengine2_9/Makefile.in | 2 ++ dlls/xactengine3_0/Makefile.in | 2 ++ dlls/xactengine3_1/Makefile.in | 2 ++ dlls/xactengine3_2/Makefile.in | 2 ++ dlls/xactengine3_3/Makefile.in | 2 ++ dlls/xactengine3_4/Makefile.in | 2 ++ dlls/xactengine3_5/Makefile.in | 2 ++ dlls/xactengine3_6/Makefile.in | 2 ++ dlls/xactengine3_7/Makefile.in | 2 ++ dlls/xapofx1_1/Makefile.in | 2 ++ dlls/xapofx1_2/Makefile.in | 2 ++ dlls/xapofx1_3/Makefile.in | 2 ++ dlls/xapofx1_4/Makefile.in | 2 ++ dlls/xapofx1_5/Makefile.in | 2 ++ dlls/xaudio2_0/Makefile.in | 2 ++ dlls/xaudio2_1/Makefile.in | 2 ++ dlls/xaudio2_2/Makefile.in | 2 ++ dlls/xaudio2_3/Makefile.in | 2 ++ dlls/xaudio2_4/Makefile.in | 2 ++ dlls/xaudio2_5/Makefile.in | 2 ++ dlls/xaudio2_6/Makefile.in | 2 ++ dlls/xaudio2_7/Makefile.in | 2 ++ dlls/xaudio2_8/Makefile.in | 2 ++ dlls/xaudio2_9/Makefile.in | 2 ++ programs/winebrowser/Makefile.in | 3 ++- programs/winedbg/Makefile.in | 3 ++- programs/winemenubuilder/Makefile.in | 3 ++- programs/winevdm/Makefile.in | 3 ++- tools/winegcc/winegcc.c | 5 +++++ 69 files changed, 140 insertions(+), 9 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=6ba7773121fd3b65e48b…
1
0
0
0
Alexandre Julliard : makefiles: Link with the full library name for Unix library imports.
by Alexandre Julliard
20 Sep '21
20 Sep '21
Module: wine Branch: master Commit: eda25a58c5e886bde89cce6b05c299646a0a667e URL:
https://source.winehq.org/git/wine.git/?a=commit;h=eda25a58c5e886bde89cce6b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 20 15:30:27 2021 +0200 makefiles: Link with the full library name for Unix library imports. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tools/makedep.c | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/tools/makedep.c b/tools/makedep.c index acc3dc67e25..7a3b55421aa 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -2111,6 +2111,18 @@ static const char *get_static_lib( const struct makefile *make, const char *name } +/******************************************************************* + * get_native_unix_lib + */ +static const char *get_native_unix_lib( const struct makefile *make, const char *name ) +{ + if (!make->unixlib) return NULL; + if (strncmp( make->unixlib, name, strlen(name) )) return NULL; + if (make->unixlib[strlen(name)] != '.') return NULL; + return obj_dir_path( make, make->unixlib ); +} + + /******************************************************************* * get_parent_makefile */ @@ -2162,13 +2174,15 @@ static int needs_implib_symlink( const struct makefile *make ) /******************************************************************* * add_unix_libraries */ -static struct strarray add_unix_libraries( const struct makefile *make, struct strarray *deps ) +static struct strarray add_unix_libraries( const struct makefile *make, struct strarray *deps, + int native_unix ) { struct strarray ret = empty_strarray; struct strarray all_libs = empty_strarray; unsigned int i, j; strarray_add( &all_libs, "-lwine_port" ); + if (native_unix && strcmp( make->module, "ntdll.dll" )) strarray_add( &all_libs, "-lntdll" ); strarray_addall( &all_libs, get_expanded_make_var_array( make, "EXTRALIBS" )); strarray_addall( &all_libs, libs ); @@ -2182,6 +2196,9 @@ static struct strarray add_unix_libraries( const struct makefile *make, struct s for (j = 0; j < subdirs.count; j++) if ((lib = get_static_lib( submakes[j], name ))) break; + if (!lib && native_unix) + for (j = 0; j < subdirs.count; j++) + if ((lib = get_native_unix_lib( submakes[j], name ))) break; } if (lib) @@ -3325,7 +3342,7 @@ static void output_module( struct makefile *make ) } else if (*dll_ext) { - if (!make->use_msvcrt) strarray_addall( &all_libs, add_unix_libraries( make, &dep_libs )); + if (!make->use_msvcrt) strarray_addall( &all_libs, add_unix_libraries( make, &dep_libs, 0 )); for (i = 0; i < make->delayimports.count; i++) strarray_add( &all_libs, strmake( "-Wl,-delayload,%s%s", make->delayimports.str[i], strchr( make->delayimports.str[i], '.' ) ? "" : ".dll" )); @@ -3339,7 +3356,7 @@ static void output_module( struct makefile *make ) } else { - strarray_addall( &all_libs, add_unix_libraries( make, &dep_libs )); + strarray_addall( &all_libs, add_unix_libraries( make, &dep_libs, 0 )); strarray_add( &make->all_targets, make->module ); add_install_rule( make, make->module, make->module, strmake( "p$(%s)/%s", spec_file ? "dlldir" : "bindir", make->module )); @@ -3376,15 +3393,7 @@ static void output_module( struct makefile *make ) struct strarray extra_libs = get_expanded_make_var_array( make, "EXTRALIBS" ); int native_unix_lib = strarray_exists( &extra_libs, "-Wl,--subsystem,unixlib" ); - if (native_unix_lib) - { - if (strcmp( make->module, "ntdll.dll" )) - { - strarray_add( &unix_libs, "-lntdll" ); - strarray_add( &unix_deps, obj_dir_path( top_makefile, "dlls/ntdll/ntdll.so" )); - } - } - else + if (!native_unix_lib) { struct strarray unix_imports = empty_strarray; @@ -3399,7 +3408,7 @@ static void output_module( struct makefile *make ) strarray_addall( &unix_libs, add_import_libs( make, &unix_deps, unix_imports, 0, 1 )); } - strarray_addall( &unix_libs, add_unix_libraries( make, &unix_deps )); + strarray_addall( &unix_libs, add_unix_libraries( make, &unix_deps, native_unix_lib )); strarray_add( &make->all_targets, make->unixlib ); add_install_rule( make, make->module, make->unixlib, strmake( "p%s/%s", so_dir, make->unixlib )); @@ -3546,7 +3555,7 @@ static void output_shared_lib( struct makefile *make ) strarray_addall( &dep_libs, get_local_dependencies( make, basename, make->in_files )); strarray_addall( &all_libs, get_expanded_file_local_var( make, basename, "LDFLAGS" )); - strarray_addall( &all_libs, add_unix_libraries( make, &dep_libs )); + strarray_addall( &all_libs, add_unix_libraries( make, &dep_libs, 0 )); output( "%s:", obj_dir_path( make, make->sharedlib )); output_filenames_obj_dir( make, make->object_files ); @@ -3660,7 +3669,7 @@ static void output_programs( struct makefile *make ) if (!objs.count) objs = make->object_files; if (!strarray_exists( &all_libs, "-nodefaultlibs" )) - strarray_addall( &all_libs, add_unix_libraries( make, &deps )); + strarray_addall( &all_libs, add_unix_libraries( make, &deps, 0 )); output( "%s:", obj_dir_path( make, program ) ); output_filenames_obj_dir( make, objs );
1
0
0
0
← Newer
1
...
40
41
42
43
44
45
46
...
103
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
Results per page:
10
25
50
100
200