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 2008
----- 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
3 participants
1216 discussions
Start a n
N
ew thread
Juan Lang : wintrust: Fix test failures on Win9x.
by Alexandre Julliard
09 Oct '08
09 Oct '08
Module: wine Branch: master Commit: 04a65b3cb8549acc8e2c94a568150148a3e4f28d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=04a65b3cb8549acc8e2c94a56…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Wed Oct 8 15:06:28 2008 -0700 wintrust: Fix test failures on Win9x. --- dlls/wintrust/tests/asn.c | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dlls/wintrust/tests/asn.c b/dlls/wintrust/tests/asn.c index eb9ca0f..a3557e7 100644 --- a/dlls/wintrust/tests/asn.c +++ b/dlls/wintrust/tests/asn.c @@ -83,7 +83,9 @@ static void test_encodeSPCLink(void) SetLastError(0xdeadbeef); ret = pCryptEncodeObjectEx(X509_ASN_ENCODING, SPC_LINK_STRUCT, &link, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); - ok(!ret && GetLastError() == CRYPT_E_INVALID_IA5_STRING, + ok(!ret && + (GetLastError() == CRYPT_E_INVALID_IA5_STRING || + GetLastError() == OSS_BAD_PTR /* Win9x */), "Expected CRYPT_E_INVALID_IA5_STRING, got %08x\n", GetLastError()); /* Unlike the crypt32 string encoding routines, size is not set to the * index of the first invalid character. @@ -229,7 +231,9 @@ static void test_decodeSPCLink(void) ret = pCryptDecodeObjectEx(X509_ASN_ENCODING, SPC_LINK_STRUCT, badMonikerSPCLink, sizeof(badMonikerSPCLink), CRYPT_DECODE_ALLOC_FLAG, NULL, (BYTE *)&buf, &size); - ok(!ret && GetLastError() == CRYPT_E_BAD_ENCODE, + ok(!ret && + (GetLastError() == CRYPT_E_BAD_ENCODE || + GetLastError() == OSS_DATA_ERROR /* Win9x */), "Expected CRYPT_E_BAD_ENCODE, got %08x\n", GetLastError()); } @@ -296,6 +300,11 @@ static void test_encodeSPCPEImage(void) imageData.Flags.cbData = sizeof(flags); ret = pCryptEncodeObjectEx(X509_ASN_ENCODING, SPC_PE_IMAGE_DATA_STRUCT, &imageData, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); + if (!ret && GetLastError() == OSS_TOO_LONG) + { + skip("SPC_PE_IMAGE_DATA_STRUCT not supported\n"); + return; + } ok(ret, "CryptEncodeObjectEx failed: %08x\n", GetLastError()); if (ret) {
1
0
0
0
Lei Zhang : regedit: Pass VK_DELETE messages to Listview/ Treeview child windows.
by Alexandre Julliard
09 Oct '08
09 Oct '08
Module: wine Branch: master Commit: a4ed7a1003ad5a86d27a9a1ada57c0aa0e4ca34f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a4ed7a1003ad5a86d27a9a1ad…
Author: Lei Zhang <thestig(a)google.com> Date: Wed Oct 8 14:39:31 2008 -0700 regedit: Pass VK_DELETE messages to Listview/Treeview child windows. --- programs/regedit/framewnd.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c index ca836e2..a801703 100644 --- a/programs/regedit/framewnd.c +++ b/programs/regedit/framewnd.c @@ -681,7 +681,9 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) break; } case ID_EDIT_DELETE: - if (GetFocus() == g_pChildWnd->hTreeWnd) { + { + HWND hWndDelete = GetFocus(); + if (hWndDelete == g_pChildWnd->hTreeWnd) { WCHAR* keyPath = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hKeyRoot); if (keyPath == 0 || *keyPath == 0) { MessageBeep(MB_ICONHAND); @@ -689,7 +691,7 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) DeleteNode(g_pChildWnd->hTreeWnd, 0); } HeapFree(GetProcessHeap(), 0, keyPath); - } else if (GetFocus() == g_pChildWnd->hListWnd) { + } else if (hWndDelete == g_pChildWnd->hListWnd) { WCHAR* keyPath = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hKeyRoot); curIndex = ListView_GetNextItem(g_pChildWnd->hListWnd, -1, LVNI_SELECTED); while(curIndex != -1) { @@ -713,8 +715,12 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) } RefreshListView(g_pChildWnd->hListWnd, hKeyRoot, keyPath, NULL); HeapFree(GetProcessHeap(), 0, keyPath); - } + } else if (IsChild(g_pChildWnd->hTreeWnd, hWndDelete) || + IsChild(g_pChildWnd->hListWnd, hWndDelete)) { + SendMessage(hWndDelete, WM_KEYDOWN, VK_DELETE, 0); + } break; + } case ID_EDIT_MODIFY: { LPCWSTR valueName = GetValueName(g_pChildWnd->hListWnd);
1
0
0
0
Alistair Leslie-Hughes : msxml3: Add IXMLHTTPRequest support.
by Alexandre Julliard
09 Oct '08
09 Oct '08
Module: wine Branch: master Commit: bcc1fda7276121668a92d8445cefed2777f2adce URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bcc1fda7276121668a92d8445…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Fri Oct 3 21:50:59 2008 +1000 msxml3: Add IXMLHTTPRequest support. --- dlls/msxml3/Makefile.in | 1 + dlls/msxml3/dispex.c | 1 + dlls/msxml3/factory.c | 5 + dlls/msxml3/httprequest.c | 343 +++++++++++++++++++++++++++++++++++++++++++ dlls/msxml3/msxml_private.h | 2 + dlls/msxml3/tests/domdoc.c | 15 +- include/msxml2.idl | 54 +++++++ 7 files changed, 414 insertions(+), 7 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=bcc1fda7276121668a92d…
1
0
0
0
Alexander Morozov : ntoskrnl.exe: Fix trace typo.
by Alexandre Julliard
09 Oct '08
09 Oct '08
Module: wine Branch: master Commit: 7541ecbf4c5f0eaa8f19df44392b7a6bb6c520be URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7541ecbf4c5f0eaa8f19df443…
Author: Alexander Morozov <amorozov(a)etersoft.ru> Date: Thu Oct 9 13:00:00 2008 +0400 ntoskrnl.exe: Fix trace typo. --- dlls/ntoskrnl.exe/ntoskrnl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 9af2f16..1ed3040 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -663,7 +663,7 @@ void WINAPI IofCompleteRequest( IRP *irp, UCHAR priority_boost ) TRACE( "calling %p( %p, %p, %p )\n", routine, irpsp->DeviceObject, irp, irpsp->Context ); stat = routine( irpsp->DeviceObject, irp, irpsp->Context ); - TRACE( "CompletionRoutine returned %x\n", status ); + TRACE( "CompletionRoutine returned %x\n", stat ); if (STATUS_MORE_PROCESSING_REQUIRED == stat) return; }
1
0
0
0
Paul Vriens : user32/tests: Don't crash on NT4.
by Alexandre Julliard
09 Oct '08
09 Oct '08
Module: wine Branch: master Commit: 4ac4401c418403581bf001b6fefa9b098e7e5119 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4ac4401c418403581bf001b6f…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Thu Oct 9 11:59:42 2008 +0200 user32/tests: Don't crash on NT4. --- dlls/user32/tests/text.c | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/dlls/user32/tests/text.c b/dlls/user32/tests/text.c index 7627280..5523ff2 100644 --- a/dlls/user32/tests/text.c +++ b/dlls/user32/tests/text.c @@ -139,11 +139,14 @@ static void test_DrawTextCalcRect(void) ok( (rect.left == rect.right && rect.bottom == rect.top), "rectangle should be empty got %d,%d-%d,%d\n", rect.left, rect.top, rect.right, rect.bottom ); - SetRect( &rect, 10,10, 100, 100); - textheight = DrawTextExW(hdc, NULL, -1, &rect, DT_CALCRECT, NULL ); - ok( !(rect.left == rect.right && rect.bottom == rect.top), - "rectangle should NOT be empty got %d,%d-%d,%d\n", - rect.left, rect.top, rect.right, rect.bottom ); + if (0) { + SetRect( &rect, 10,10, 100, 100); + /* Crashes on NT4 */ + textheight = DrawTextExW(hdc, NULL, -1, &rect, DT_CALCRECT, NULL ); + ok( !(rect.left == rect.right && rect.bottom == rect.top), + "rectangle should NOT be empty got %d,%d-%d,%d\n", + rect.left, rect.top, rect.right, rect.bottom ); + } SetRect( &rect, 10,10, 100, 100); textheight = DrawTextExW(hdc, NULL, 0, &rect, DT_CALCRECT, NULL ); ok( !(rect.left == rect.right && rect.bottom == rect.top),
1
0
0
0
Paul Vriens : wintrust/tests: Vista/W2K8 have some extra struct members.
by Alexandre Julliard
09 Oct '08
09 Oct '08
Module: wine Branch: master Commit: b7787ec0c8737c5f3c6fcb1c9f1bb400131c185e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b7787ec0c8737c5f3c6fcb1c9…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Thu Oct 9 11:25:05 2008 +0200 wintrust/tests: Vista/W2K8 have some extra struct members. --- dlls/wintrust/tests/softpub.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/wintrust/tests/softpub.c b/dlls/wintrust/tests/softpub.c index 5509bce..5c5d892 100644 --- a/dlls/wintrust/tests/softpub.c +++ b/dlls/wintrust/tests/softpub.c @@ -506,7 +506,8 @@ static void test_get_known_usages(void) */ for (ptr = usages; *ptr; ptr++) { - ok((*ptr)->cbSize == sizeof(CRYPT_OID_INFO), + ok((*ptr)->cbSize == sizeof(CRYPT_OID_INFO) || + (*ptr)->cbSize == (sizeof(CRYPT_OID_INFO) + 2 * sizeof(LPCWSTR)), /* Vista */ "unexpected size %d\n", (*ptr)->cbSize); /* Each returned usage is in the CRYPT_ENHKEY_USAGE_OID_GROUP_ID group */ ok((*ptr)->dwGroupId == CRYPT_ENHKEY_USAGE_OID_GROUP_ID,
1
0
0
0
Paul Vriens : shell32/tests: Fix a failure on NT4.
by Alexandre Julliard
09 Oct '08
09 Oct '08
Module: wine Branch: master Commit: 025a39e209fbb8dca623827e05d867830fc1002a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=025a39e209fbb8dca623827e0…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Thu Oct 9 09:52:17 2008 +0200 shell32/tests: Fix a failure on NT4. --- dlls/shell32/tests/shelllink.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c index 83aae3f..76bc3d2 100644 --- a/dlls/shell32/tests/shelllink.c +++ b/dlls/shell32/tests/shelllink.c @@ -217,13 +217,15 @@ static void test_get_set(void) } - /* test path with quotes (Win98 IShellLinkA_SetPath returns S_FALSE, WinXP returns S_OK) */ + /* test path with quotes (IShellLinkA_SetPath returns S_FALSE on W2K and below and S_OK on XP and above */ r = IShellLinkA_SetPath(sl, "\"c:\\nonexistent\\file\""); ok(r==S_FALSE || r == S_OK, "SetPath failed (0x%08x)\n", r); r = IShellLinkA_GetPath(sl, buffer, sizeof(buffer), NULL, SLGP_RAWPATH); ok(r==S_OK, "GetPath failed (0x%08x)\n", r); - ok(!lstrcmp(buffer, "C:\\nonexistent\\file"), "case doesn't match\n"); + ok(!lstrcmp(buffer, "C:\\nonexistent\\file") || + broken(!lstrcmp(buffer, "C:\\\"c:\\nonexistent\\file\"")), /* NT4 */ + "case doesn't match\n"); r = IShellLinkA_SetPath(sl, "\"c:\\foo"); ok(r==S_FALSE || r == S_OK || r == E_INVALIDARG /* Vista */, "SetPath failed (0x%08x)\n", r);
1
0
0
0
Paul Vriens : ole32/tests: Fix two failures on NT4.
by Alexandre Julliard
09 Oct '08
09 Oct '08
Module: wine Branch: master Commit: 6d15749d142940bb509a235f762a078da16bfadf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6d15749d142940bb509a235f7…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Wed Oct 8 20:37:57 2008 +0200 ole32/tests: Fix two failures on NT4. --- dlls/ole32/tests/dragdrop.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/tests/dragdrop.c b/dlls/ole32/tests/dragdrop.c index ad10a58..b759981 100644 --- a/dlls/ole32/tests/dragdrop.c +++ b/dlls/ole32/tests/dragdrop.c @@ -137,7 +137,9 @@ START_TEST(dragdrop) NULL, NULL, NULL); hr = RegisterDragDrop(hwnd, &DropTarget); - ok(hr == E_OUTOFMEMORY, "RegisterDragDrop without OLE initialized should have returned E_OUTOFMEMORY instead of 0x%08x\n", hr); + ok(hr == E_OUTOFMEMORY || + broken(hr == CO_E_NOTINITIALIZED), /* NT4 */ + "RegisterDragDrop without OLE initialized should have returned E_OUTOFMEMORY instead of 0x%08x\n", hr); OleInitialize(NULL); @@ -164,7 +166,9 @@ START_TEST(dragdrop) hr = RevokeDragDrop(hwnd); ok_ole_success(hr, "RevokeDragDrop"); - ok(droptarget_release_called == 1, "DropTarget_Release should have been called once, not %d times\n", droptarget_release_called); + ok(droptarget_release_called == 1 || + broken(droptarget_release_called == 0), /* NT4 */ + "DropTarget_Release should have been called once, not %d times\n", droptarget_release_called); hr = RevokeDragDrop(NULL); ok(hr == DRAGDROP_E_INVALIDHWND, "RevokeDragDrop with NULL hwnd should return DRAGDROP_E_INVALIDHWND instead of 0x%08x\n", hr);
1
0
0
0
James Hawkins : msi: Initialize the count variable to zero.
by Alexandre Julliard
09 Oct '08
09 Oct '08
Module: wine Branch: master Commit: 68268dc3df2c6a05528ec9fe68959730f7417718 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=68268dc3df2c6a05528ec9fe6…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Thu Oct 9 04:45:25 2008 -0500 msi: Initialize the count variable to zero. --- dlls/msi/dialog.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 799aa48..2dcb868 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -2247,6 +2247,7 @@ static UINT msi_listbox_add_items( struct msi_listbox_info *info, LPCWSTR proper return r; /* just get the number of records */ + count = 0; r = MSI_IterateRecords( view, &count, NULL, NULL ); info->num_items = count;
1
0
0
0
James Hawkins : msi: Add extra constraints on the formatting string of edit path text.
by Alexandre Julliard
09 Oct '08
09 Oct '08
Module: wine Branch: master Commit: 451aff9ae54c0817a33e205df1c144d3b8bd0942 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=451aff9ae54c0817a33e205df…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Thu Oct 9 00:54:04 2008 -0500 msi: Add extra constraints on the formatting string of edit path text. --- dlls/msi/dialog.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index add7876..799aa48 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -1204,12 +1204,15 @@ static UINT msi_dialog_combo_control( msi_dialog *dialog, MSIRECORD *rec ) return ERROR_SUCCESS; } +/* length of 2^32 + 1 */ +#define MAX_NUM_DIGITS 11 + static UINT msi_dialog_edit_control( msi_dialog *dialog, MSIRECORD *rec ) { msi_control *control; LPCWSTR prop, text; LPWSTR val, begin, end; - WCHAR num[10]; + WCHAR num[MAX_NUM_DIGITS]; DWORD limit; control = msi_dialog_add_control( dialog, rec, szEdit, @@ -1222,7 +1225,9 @@ static UINT msi_dialog_edit_control( msi_dialog *dialog, MSIRECORD *rec ) begin = strchrW( text, '{' ); end = strchrW( text, '}' ); - if ( begin && end && end > begin ) + if ( begin && end && end > begin && + begin[0] >= '0' && begin[0] <= '9' && + end - begin < MAX_NUM_DIGITS) { lstrcpynW( num, begin + 1, end - begin ); limit = atolW( num );
1
0
0
0
← Newer
1
...
77
78
79
80
81
82
83
...
122
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
Results per page:
10
25
50
100
200