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
October 2007
----- 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
4 participants
996 discussions
Start a n
N
ew thread
Alexandre Julliard : Fix redundant uses of MAKEINTRESOURCE.
by Alexandre Julliard
18 Oct '07
18 Oct '07
Module: wine Branch: master Commit: 41cf63148af21722e8b85c216b60ec4998cb2c1c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=41cf63148af21722e8b85c216…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Oct 18 14:12:05 2007 +0200 Fix redundant uses of MAKEINTRESOURCE. --- dlls/ole32/tests/ole2.c | 2 +- dlls/shell32/tests/systray.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/tests/ole2.c b/dlls/ole32/tests/ole2.c index 6732c13..4eb6be6 100644 --- a/dlls/ole32/tests/ole2.c +++ b/dlls/ole32/tests/ole2.c @@ -1175,7 +1175,7 @@ static void test_data_cache(void) fmtetc.cfFormat = CF_METAFILEPICT; stgmedium.tymed = TYMED_MFPICT; U(stgmedium).hMetaFilePict = OleMetafilePictFromIconAndLabel( - LoadIcon(NULL, MAKEINTRESOURCE(IDI_APPLICATION)), wszPath, wszPath, 0); + LoadIcon(NULL, IDI_APPLICATION), wszPath, wszPath, 0); stgmedium.pUnkForRelease = NULL; fmtetc.dwAspect = DVASPECT_CONTENT; diff --git a/dlls/shell32/tests/systray.c b/dlls/shell32/tests/systray.c index b80b109..9c97a4e 100644 --- a/dlls/shell32/tests/systray.c +++ b/dlls/shell32/tests/systray.c @@ -83,7 +83,7 @@ START_TEST(systray) wc.cbWndExtra = 0; wc.hInstance = GetModuleHandleA(NULL); wc.hIcon = NULL; - wc.hCursor = LoadCursorA(NULL, MAKEINTRESOURCEA(IDC_IBEAM)); + wc.hCursor = LoadCursorA(NULL, IDC_IBEAM); wc.hbrBackground = GetSysColorBrush(COLOR_WINDOW); wc.lpszMenuName = NULL; wc.lpszClassName = "MyTestWnd";
1
0
0
0
Alexandre Julliard : shell32: Use wine_get_dos_file_name instead of duplicating knowledge about the drive symlinks .
by Alexandre Julliard
18 Oct '07
18 Oct '07
Module: wine Branch: master Commit: 7f092818f057ce02d0f8c4628cbf7e93c1d69040 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7f092818f057ce02d0f8c4628…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Oct 18 14:11:43 2007 +0200 shell32: Use wine_get_dos_file_name instead of duplicating knowledge about the drive symlinks. --- dlls/shell32/shfldr_unixfs.c | 59 ++++++++++-------------------------------- 1 files changed, 14 insertions(+), 45 deletions(-) diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c index a4f4ade..f780037 100644 --- a/dlls/shell32/shfldr_unixfs.c +++ b/dlls/shell32/shfldr_unixfs.c @@ -369,36 +369,6 @@ static inline BOOL UNIXFS_is_pidl_of_type(LPITEMIDLIST pIDL, SHCONTF fFilter) { } /****************************************************************************** - * UNIXFS_is_dos_device [Internal] - * - * Determines if a unix directory corresponds to any dos device. - * - * PARAMS - * statPath [I] The stat struct of the directory, as returned by stat(2). - * - * RETURNS - * TRUE, if statPath corresponds to any dos drive letter - * FALSE, otherwise - */ -static BOOL UNIXFS_is_dos_device(const struct stat *statPath) { - struct stat statDrive; - char *pszDrivePath; - DWORD dwDriveMap; - WCHAR wszDosDevice[4] = { 'A', ':', '\\', 0 }; - - for (dwDriveMap = GetLogicalDrives(); dwDriveMap; dwDriveMap >>= 1, wszDosDevice[0]++) { - if (!(dwDriveMap & 0x1)) continue; - pszDrivePath = wine_get_unix_file_name(wszDosDevice); - if (pszDrivePath && !stat(pszDrivePath, &statDrive)) { - HeapFree(GetProcessHeap(), 0, pszDrivePath); - if ((statPath->st_dev == statDrive.st_dev) && (statPath->st_ino == statDrive.st_ino)) - return TRUE; - } - } - return FALSE; -} - -/****************************************************************************** * UNIXFS_get_unix_path [Internal] * * Convert an absolute dos path to an absolute unix path. @@ -733,9 +703,9 @@ static HRESULT UNIXFS_initialize_target_folder(UnixFolder *This, const char *szB { LPCITEMIDLIST current = pidlSubFolder; DWORD dwPathLen = strlen(szBasePath)+1; - struct stat statPrefix; char *pNextDir; - + WCHAR *dos_name; + /* Determine the path's length bytes */ while (current && current->mkid.cb) { dwPathLen += UNIXFS_filename_from_shitemid(current, NULL) + 1; /* For the '/' */ @@ -755,23 +725,20 @@ static HRESULT UNIXFS_initialize_target_folder(UnixFolder *This, const char *szB pNextDir += strlen(szBasePath); if (This->m_dwPathMode == PATHMODE_UNIX || IsEqualCLSID(&CLSID_MyDocuments, This->m_pCLSID)) This->m_dwAttributes |= SFGAO_FILESYSTEM; - if (!(This->m_dwAttributes & SFGAO_FILESYSTEM)) { - *pNextDir = '\0'; - if (!stat(This->m_pszPath, &statPrefix) && UNIXFS_is_dos_device(&statPrefix)) - This->m_dwAttributes |= SFGAO_FILESYSTEM; - } while (current && current->mkid.cb) { pNextDir += UNIXFS_filename_from_shitemid(current, pNextDir); - if (!(This->m_dwAttributes & SFGAO_FILESYSTEM)) { - *pNextDir = '\0'; - if (!stat(This->m_pszPath, &statPrefix) && UNIXFS_is_dos_device(&statPrefix)) - This->m_dwAttributes |= SFGAO_FILESYSTEM; - } *pNextDir++ = '/'; current = ILGetNext(current); } *pNextDir='\0'; - + + if (!(This->m_dwAttributes & SFGAO_FILESYSTEM) && + ((dos_name = wine_get_dos_file_name(This->m_pszPath)))) + { + This->m_dwAttributes |= SFGAO_FILESYSTEM; + HeapFree( GetProcessHeap(), 0, dos_name ); + } + return S_OK; } @@ -1050,11 +1017,13 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_GetAttributesOf(IShellFolder2* if pszRelativePath = szAbsolutePath + lstrlenA(szAbsolutePath); for (i=0; i<cidl; i++) { if (!(This->m_dwAttributes & SFGAO_FILESYSTEM)) { - struct stat fileStat; + WCHAR *dos_name; if (!UNIXFS_filename_from_shitemid(apidl[i], pszRelativePath)) return E_INVALIDARG; - if (stat(szAbsolutePath, &fileStat) || !UNIXFS_is_dos_device(&fileStat)) + if (!(dos_name = wine_get_dos_file_name( szAbsolutePath ))) *rgfInOut &= ~SFGAO_FILESYSTEM; + else + HeapFree( GetProcessHeap(), 0, dos_name ); } if (_ILIsFolder(apidl[i])) *rgfInOut |= SFGAO_FOLDER|SFGAO_HASSUBFOLDER|SFGAO_FILESYSANCESTOR;
1
0
0
0
Alex Villacís Lasso : user32: Tests for fix EM_SETLIMITTEXT with zeroed args.
by Alexandre Julliard
18 Oct '07
18 Oct '07
Module: wine Branch: master Commit: c67d0122db53999d4b58a33209ee1e43de6327a9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c67d0122db53999d4b58a3320…
Author: Alex Villacís Lasso <a_villacis(a)palosanto.com> Date: Sun Oct 14 20:25:54 2007 -0500 user32: Tests for fix EM_SETLIMITTEXT with zeroed args. --- dlls/user32/tests/edit.c | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-) diff --git a/dlls/user32/tests/edit.c b/dlls/user32/tests/edit.c index c74f6d7..cd498cc 100644 --- a/dlls/user32/tests/edit.c +++ b/dlls/user32/tests/edit.c @@ -706,6 +706,36 @@ static void test_edit_control_5(void) DestroyWindow(hWnd); } +static void test_edit_control_limittext(void) +{ + HWND hwEdit; + DWORD r; + + /* Test default limit for single-line control */ + trace("EDIT: buffer limit for single-line\n"); + hwEdit = create_editcontrol(ES_AUTOHSCROLL | ES_AUTOVSCROLL, 0); + r = SendMessage(hwEdit, EM_GETLIMITTEXT, 0, 0); + ok(r == 30000, "Incorrect default text limit, expected 30000 got %u\n", r); + SendMessage(hwEdit, EM_SETLIMITTEXT, 0, 0); + r = SendMessage(hwEdit, EM_GETLIMITTEXT, 0, 0); + /* Win9x+ME: 32766; WinNT: 2147483646UL */ + ok( (r == 32766) || (r == 2147483646UL), + "got limit %u (expected 32766 or 2147483646)\n", r); + DestroyWindow(hwEdit); + + /* Test default limit for multi-line control */ + trace("EDIT: buffer limit for multi-line\n"); + hwEdit = create_editcontrol(ES_MULTILINE | WS_VSCROLL | ES_AUTOHSCROLL | ES_AUTOVSCROLL, 0); + r = SendMessage(hwEdit, EM_GETLIMITTEXT, 0, 0); + ok(r == 30000, "Incorrect default text limit, expected 30000 got %u\n", r); + SendMessage(hwEdit, EM_SETLIMITTEXT, 0, 0); + r = SendMessage(hwEdit, EM_GETLIMITTEXT, 0, 0); + /* Win9x+ME: 65535; WinNT: 4294967295UL */ + ok( (r == 65535) || (r == 4294967295UL), + "got limit %u (expected 65535 or 4294967295)\n", r); + DestroyWindow(hwEdit); +} + static void test_margins(void) { HWND hwEdit; @@ -1139,7 +1169,7 @@ static BOOL RegisterWindowClasses (void) text_position.cbWndExtra = 0; text_position.hInstance = hinst; text_position.hIcon = NULL; - text_position.hCursor = LoadCursorA(NULL, MAKEINTRESOURCEA(IDC_ARROW)); + text_position.hCursor = LoadCursorA(NULL, IDC_ARROW); text_position.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1); text_position.lpszMenuName = NULL; text_position.lpszClassName = szEditTextPositionClass; @@ -1166,6 +1196,7 @@ START_TEST(edit) test_edit_control_3(); test_edit_control_4(); test_edit_control_5(); + test_edit_control_limittext(); test_margins(); test_margins_font_change(); test_text_position();
1
0
0
0
Alex Villacís Lasso : user32: Fix EM_SETLIMITTEXT with zeroed args.
by Alexandre Julliard
18 Oct '07
18 Oct '07
Module: wine Branch: master Commit: 48fd106ea17bc37aed9f7d2166d329824ed2dfb3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=48fd106ea17bc37aed9f7d216…
Author: Alex Villacís Lasso <a_villacis(a)palosanto.com> Date: Tue Oct 16 15:25:51 2007 -0500 user32: Fix EM_SETLIMITTEXT with zeroed args. --- dlls/user32/edit.c | 37 +++++++++++-------------------------- 1 files changed, 11 insertions(+), 26 deletions(-) diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index b11bf10..6ea843e 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -65,9 +65,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(edit); WINE_DECLARE_DEBUG_CHANNEL(combo); WINE_DECLARE_DEBUG_CHANNEL(relay); -#define BUFLIMIT_MULTI 65534 /* maximum buffer size (not including '\0') - FIXME: BTW, new specs say 65535 (do you dare ???) */ -#define BUFLIMIT_SINGLE 32766 /* maximum buffer size (not including '\0') */ +#define BUFLIMIT_INITIAL 30000 /* initial buffer size */ #define GROWLENGTH 32 /* buffers granularity in bytes: must be power of 2 */ #define ROUND_TO_GROW(size) (((size) + (GROWLENGTH - 1)) & ~(GROWLENGTH - 1)) #define HSCROLL_FRACTION 3 /* scroll window by 1/3 width */ @@ -247,7 +245,7 @@ static LRESULT EDIT_EM_Scroll(EDITSTATE *es, INT action); static void EDIT_EM_ScrollCaret(EDITSTATE *es); static void EDIT_EM_SetHandle(EDITSTATE *es, HLOCAL hloc); static void EDIT_EM_SetHandle16(EDITSTATE *es, HLOCAL16 hloc); -static void EDIT_EM_SetLimitText(EDITSTATE *es, INT limit); +static void EDIT_EM_SetLimitText(EDITSTATE *es, UINT limit); static void EDIT_EM_SetMargins(EDITSTATE *es, INT action, WORD left, WORD right, BOOL repaint); static void EDIT_EM_SetPasswordChar(EDITSTATE *es, WCHAR c); static void EDIT_EM_SetSel(EDITSTATE *es, UINT start, UINT end, BOOL after_wrap); @@ -650,7 +648,7 @@ static LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg, case EM_LIMITTEXT16: case EM_SETLIMITTEXT: - EDIT_EM_SetLimitText(es, (INT)wParam); + EDIT_EM_SetLimitText(es, wParam); break; case EM_CANUNDO16: @@ -3203,7 +3201,7 @@ static void EDIT_EM_ReplaceSel(EDITSTATE *es, BOOL can_undo, LPCWSTR lpsz_replac /* Issue the EN_MAXTEXT notification and continue with replacing text * such that buffer limit is honored. */ - if ((honor_limit) && (es->buffer_limit > 0) && (size > es->buffer_limit)) { + if ((honor_limit) && (size > es->buffer_limit)) { EDIT_NOTIFY_PARENT(es, EN_MAXTEXT); strl = es->buffer_limit - (tl - (e-s)); } @@ -3649,27 +3647,14 @@ static void EDIT_EM_SetHandle16(EDITSTATE *es, HLOCAL16 hloc) * * EM_SETLIMITTEXT * - * FIXME: in WinNT maxsize is 0x7FFFFFFF / 0xFFFFFFFF - * However, the windows version is not complied to yet in all of edit.c + * NOTE: this version currently implements WinNT limits * - * Additionally as the wrapper for RichEdit controls we need larger buffers - * at present -1 will represent nolimit */ -static void EDIT_EM_SetLimitText(EDITSTATE *es, INT limit) +static void EDIT_EM_SetLimitText(EDITSTATE *es, UINT limit) { - if (limit == 0xFFFFFFFF) - es->buffer_limit = -1; - else if (es->style & ES_MULTILINE) { - if (limit) - es->buffer_limit = min(limit, BUFLIMIT_MULTI); - else - es->buffer_limit = BUFLIMIT_MULTI; - } else { - if (limit) - es->buffer_limit = min(limit, BUFLIMIT_SINGLE); - else - es->buffer_limit = BUFLIMIT_SINGLE; - } + if (!limit) limit = ~0u; + if (!(es->style & ES_MULTILINE)) limit = min(limit, 0x7ffffffe); + es->buffer_limit = limit; } @@ -4792,7 +4777,7 @@ static LRESULT EDIT_WM_NCCreate(HWND hwnd, LPCREATESTRUCTW lpcs, BOOL unicode) es->style &= ~ES_UPPERCASE; } if (es->style & ES_MULTILINE) { - es->buffer_limit = BUFLIMIT_MULTI; + es->buffer_limit = BUFLIMIT_INITIAL; if (es->style & WS_VSCROLL) es->style |= ES_AUTOVSCROLL; if (es->style & WS_HSCROLL) @@ -4806,7 +4791,7 @@ static LRESULT EDIT_WM_NCCreate(HWND hwnd, LPCREATESTRUCTW lpcs, BOOL unicode) es->style &= ~ES_AUTOHSCROLL; } } else { - es->buffer_limit = BUFLIMIT_SINGLE; + es->buffer_limit = BUFLIMIT_INITIAL; if ((es->style & ES_RIGHT) && (es->style & ES_CENTER)) es->style &= ~ES_CENTER; es->style &= ~WS_HSCROLL;
1
0
0
0
Dmitry Timoshkov : user32: Add more listbox message tests, make them pass under Wine.
by Alexandre Julliard
18 Oct '07
18 Oct '07
Module: wine Branch: master Commit: 566ce8f5edd314d31a2f76f10da51d8674a66112 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=566ce8f5edd314d31a2f76f10…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Tue Oct 16 22:23:34 2007 +0900 user32: Add more listbox message tests, make them pass under Wine. --- dlls/user32/listbox.c | 81 +++++++++++++++++++++++++++++++----------- dlls/user32/tests/msg.c | 91 ++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 138 insertions(+), 34 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=566ce8f5edd314d31a2f7…
1
0
0
0
Evan Teran : shell32: Fix typo in GlobalAlloc parameters.
by Alexandre Julliard
18 Oct '07
18 Oct '07
Module: wine Branch: master Commit: 6b3c0ecf2e968621ff6b21b4fa8d11d55187cbb5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6b3c0ecf2e968621ff6b21b4f…
Author: Evan Teran <evan.teran(a)gmail.com> Date: Thu Oct 18 02:12:34 2007 -0400 shell32: Fix typo in GlobalAlloc parameters. --- dlls/shell32/shell32_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c index b974f8d..63f81f3 100644 --- a/dlls/shell32/shell32_main.c +++ b/dlls/shell32/shell32_main.c @@ -97,7 +97,7 @@ LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs) /* Return the path to the executable */ DWORD len, size=16; - hargv=GlobalAlloc(size, 0); + hargv=GlobalAlloc(0, size); argv=GlobalLock(hargv); for (;;) {
1
0
0
0
Mikolaj Zalewski : msi: Make the WriteEnvironmentStrings handling of [~] a bit better.
by Alexandre Julliard
18 Oct '07
18 Oct '07
Module: wine Branch: master Commit: d5b620ea0bde2c60696c72e2d6d33a8b4aacd1f3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d5b620ea0bde2c60696c72e2d…
Author: Mikolaj Zalewski <mikolajz(a)google.com> Date: Wed Oct 17 18:22:16 2007 -0700 msi: Make the WriteEnvironmentStrings handling of [~] a bit better. --- dlls/msi/action.c | 32 ++++++++++++++++++-------------- 1 files changed, 18 insertions(+), 14 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 0b3374d..80caaac 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -4757,12 +4757,13 @@ static UINT ACTION_InstallODBC( MSIPACKAGE *package ) #define check_flag_combo(x, y) ((x) & ~(y)) == (y) -static LONG env_set_flags( LPCWSTR *name, LPWSTR *value, DWORD *flags ) +static LONG env_set_flags( LPCWSTR *name, LPCWSTR *value, DWORD *flags ) { LPCWSTR cptr = *name; - LPWSTR ptr = *value; + LPCWSTR ptr = *value; static const WCHAR prefix[] = {'[','~',']',0}; + static const int prefix_len = 3; *flags = 0; while (*cptr) @@ -4790,18 +4791,18 @@ static LONG env_set_flags( LPCWSTR *name, LPWSTR *value, DWORD *flags ) return ERROR_FUNCTION_FAILED; } - if (!strncmpW(ptr, prefix, lstrlenW(prefix))) + if (!strncmpW(ptr, prefix, prefix_len)) { - *flags |= ENV_MOD_PREFIX; + *flags |= ENV_MOD_APPEND; *value += lstrlenW(prefix); } - else + else if (lstrlenW(*value) >= prefix_len) { - ptr += lstrlenW(ptr) - lstrlenW(prefix) - 1; + ptr += lstrlenW(ptr) - prefix_len; if (!lstrcmpW(ptr, prefix)) { - *flags |= ENV_MOD_APPEND; - *ptr = '\0'; + *flags |= ENV_MOD_PREFIX; + /* the "[~]" will be removed by deformat_string */; } } @@ -4823,7 +4824,7 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param ) MSIPACKAGE *package = param; LPCWSTR name, value, comp; LPWSTR data = NULL, newval = NULL; - LPWSTR deformatted, ptr; + LPWSTR deformatted = NULL, ptr; DWORD flags, type, size; LONG res; HKEY env = NULL, root = HKEY_CURRENT_USER; @@ -4840,14 +4841,17 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param ) value = MSI_RecordGetString(rec, 3); comp = MSI_RecordGetString(rec, 4); - deformat_string(package, value, &deformatted); - if (!deformatted) - return ERROR_OUTOFMEMORY; - - res = env_set_flags(&name, &deformatted, &flags); + res = env_set_flags(&name, &value, &flags); if (res != ERROR_SUCCESS) goto done; + deformat_string(package, value, &deformatted); + if (!deformatted) + { + res = ERROR_OUTOFMEMORY; + goto done; + } + value = deformatted; if (flags & ENV_MOD_MACHINE)
1
0
0
0
Nigel Liang : wininet: Release object in HttpEndRequestW after use.
by Alexandre Julliard
18 Oct '07
18 Oct '07
Module: wine Branch: master Commit: 7d2ac2039b3212b1a2b6dccdda3fc0640787a696 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7d2ac2039b3212b1a2b6dccdd…
Author: Nigel Liang <ncliang(a)gmail.com> Date: Wed Oct 17 17:07:41 2007 -0700 wininet: Release object in HttpEndRequestW after use. --- dlls/wininet/http.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 454d332..70239f7 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -830,6 +830,8 @@ BOOL WINAPI HttpEndRequestW(HINTERNET hRequest, if (NULL == lpwhr || lpwhr->hdr.htype != WH_HHTTPREQ) { INTERNET_SetLastError(ERROR_INTERNET_INCORRECT_HANDLE_TYPE); + if (lpwhr) + WININET_Release( &lpwhr->hdr ); return FALSE; } @@ -881,6 +883,7 @@ BOOL WINAPI HttpEndRequestW(HINTERNET hRequest, } } + WININET_Release( &lpwhr->hdr ); TRACE("%i <--\n",rc); return rc; }
1
0
0
0
Detlef Riekenberg : spoolss: Return a magic number as HANDLE in RevertToPrinterSelf.
by Alexandre Julliard
18 Oct '07
18 Oct '07
Module: wine Branch: master Commit: c2b52a11f4cf2c38a68e7771a6b1f30fc4a27f92 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c2b52a11f4cf2c38a68e7771a…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Wed Oct 17 22:55:56 2007 +0200 spoolss: Return a magic number as HANDLE in RevertToPrinterSelf. --- dlls/spoolss/spoolss_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/spoolss/spoolss_main.c b/dlls/spoolss/spoolss_main.c index 15a86c8..2fee59e 100644 --- a/dlls/spoolss/spoolss_main.c +++ b/dlls/spoolss/spoolss_main.c @@ -175,7 +175,7 @@ BOOL WINAPI ImpersonatePrinterClient(HANDLE hToken) HANDLE WINAPI RevertToPrinterSelf(void) { FIXME("() stub\n"); - return NULL; + return (HANDLE) 0xdead0947; } /******************************************************************
1
0
0
0
Detlef Riekenberg : spoolss: Add a stub for BuildOtherNamesFromMachineName.
by Alexandre Julliard
18 Oct '07
18 Oct '07
Module: wine Branch: master Commit: cdb5f358a153ec53fd8c94b00dee74bdfa348eed URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cdb5f358a153ec53fd8c94b00…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Wed Oct 17 22:46:07 2007 +0200 spoolss: Add a stub for BuildOtherNamesFromMachineName. --- dlls/spoolss/spoolss.spec | 2 +- dlls/spoolss/spoolss_main.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletions(-) diff --git a/dlls/spoolss/spoolss.spec b/dlls/spoolss/spoolss.spec index 2f893d5..d873d75 100644 --- a/dlls/spoolss/spoolss.spec +++ b/dlls/spoolss/spoolss.spec @@ -14,7 +14,7 @@ @ stub AddPrinterW @ stdcall AllocSplStr(wstr) @ stub AppendPrinterNotifyInfoData -@ stub BuildOtherNamesFromMachineName +@ stdcall BuildOtherNamesFromMachineName(ptr ptr) @ stub CallDrvDevModeConversion @ stub CallRouterFindFirstPrinterChangeNotification @ stub ClosePrinter diff --git a/dlls/spoolss/spoolss_main.c b/dlls/spoolss/spoolss_main.c index 9a9ec48..15a86c8 100644 --- a/dlls/spoolss/spoolss_main.c +++ b/dlls/spoolss/spoolss_main.c @@ -80,6 +80,18 @@ LPWSTR WINAPI AllocSplStr(LPCWSTR pwstr) } /****************************************************************** + * BuildOtherNamesFromMachineName [SPOOLSS.@] + */ +BOOL WINAPI BuildOtherNamesFromMachineName(LPVOID * ptr1, LPVOID * ptr2) +{ + FIXME("(%p, %p) stub\n", ptr1, ptr2); + + *ptr1 = NULL; + *ptr2 = NULL; + return FALSE; +} + +/****************************************************************** * DllAllocSplMem [SPOOLSS.@] * * Allocate cleared memory from the spooler heap
1
0
0
0
← Newer
1
...
43
44
45
46
47
48
49
...
100
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
Results per page:
10
25
50
100
200