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
June 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
5 participants
856 discussions
Start a n
N
ew thread
appdb/include testData.php
by WineHQ
10 Jun '07
10 Jun '07
ChangeSet ID: 31168 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/06/09 19:14:03 Modified files: include : testData.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Sort testData by id Patch:
http://cvs.winehq.org/patch.py?id=31168
Old revision New revision Changes Path 1.55 1.56 +6 -6 appdb/include/testData.php Index: appdb/include/testData.php diff -u -p appdb/include/testData.php:1.55 appdb/include/testData.php:1.56 --- appdb/include/testData.php:1.55 10 Jun 2007 0:14: 3 -0000 +++ appdb/include/testData.php 10 Jun 2007 0:14: 3 -0000 @@ -828,7 +828,7 @@ class testData{ return $oRow->count; } - function objectGetEntries($bQueued, $bRejected) + function objectGetEntries($bQueued, $bRejected, $sOrderBy = "testingId") { $oTest = new testData(); $sQueued = objectManager::getQueueString($bQueued, $bRejected); @@ -843,7 +843,7 @@ class testData{ AND testResults.submitterId = '?' AND - testResults.queued = '?'"; + testResults.queued = '?' ORDER BY '?'"; } else { $sQuery = "SELECT testResults.* FROM testResults, appVersion, @@ -868,10 +868,10 @@ class testData{ ) ) AND - testResults.queued = '?'"; + testResults.queued = '?' ORDER BY '?'"; } $hResult = query_parameters($sQuery, $_SESSION['current']->iUserId, - $sQueued); + $sQueued, $sOrderBy); } else { $sQuery = "SELECT testResults.* FROM testResults, appVersion WHERE @@ -879,8 +879,8 @@ class testData{ AND appVersion.queued = 'false' AND - testResults.queued = '?' ORDER by testingId"; - $hResult = query_parameters($sQuery, $sQueued); + testResults.queued = '?' ORDER by '?'"; + $hResult = query_parameters($sQuery, $sQueued, $sOrderBy); } if(!$hResult)
1
0
0
0
appdb/include image.php screenshot.php
by WineHQ
09 Jun '07
09 Jun '07
ChangeSet ID: 31167 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/06/09 17:17:32 Modified files: include : image.php screenshot.php Log message: Chris Morgan <cmorgan(a)alum.wpi.edu> Screenshot::delete() and Image::delete() should check if the file exists before attempting to call unlink() on it. Fixes three php errors that occur during the unit tests. Patch:
http://cvs.winehq.org/patch.py?id=31167
Old revision New revision Changes Path 1.9 1.10 +3 -1 appdb/include/image.php 1.67 1.68 +6 -1 appdb/include/screenshot.php Index: appdb/include/image.php diff -u -p appdb/include/image.php:1.9 appdb/include/image.php:1.10 --- appdb/include/image.php:1.9 9 Jun 2007 22:17:32 -0000 +++ appdb/include/image.php 9 Jun 2007 22:17:32 -0000 @@ -391,7 +391,9 @@ class Image { */ function delete() { - unlink($this->sFile); + // if the file exists, delete it + if(is_file($this->sFile)) + unlink($this->sFile); } Index: appdb/include/screenshot.php diff -u -p appdb/include/screenshot.php:1.67 appdb/include/screenshot.php:1.68 --- appdb/include/screenshot.php:1.67 9 Jun 2007 22:17:32 -0000 +++ appdb/include/screenshot.php 9 Jun 2007 22:17:32 -0000 @@ -139,7 +139,12 @@ class Screenshot { $this->oScreenshotImage->delete(); $this->oThumbnailImage->delete(); - unlink(appdb_fullpath("/data/screenshots/originals/".$this->iScreenshotId)); + + // if the original file exists, delete it + $sOriginalFilename = appdb_fullpath("/data/screenshots/originals/".$this->iScreenshotId); + if(is_file($sOriginalFilename)) + unlink($sOriginalFilename); + if(!$bSilent) $this->mailMaintainers(true); }
1
0
0
0
appdb/. addcomment.php
by WineHQ
09 Jun '07
09 Jun '07
ChangeSet ID: 31166 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/06/09 17:13:27 Modified files: . : addcomment.php Log message: Ben Hodgetts <ben(a)atomnet.co.uk> Add a note to not post terminal outputs to comments Patch:
http://cvs.winehq.org/patch.py?id=31166
Old revision New revision Changes Path 1.36 1.37 +3 -0 appdb/addcomment.php Index: appdb/addcomment.php diff -u -p appdb/addcomment.php:1.36 appdb/addcomment.php:1.37 --- appdb/addcomment.php:1.36 9 Jun 2007 22:13:27 -0000 +++ appdb/addcomment.php 9 Jun 2007 22:13:27 -0000 @@ -58,6 +58,9 @@ if(!empty($aClean['sBody'])) } } + echo "<p align=\"center\">Enter your comment in the box below."; + echo "</br>Please do not paste large terminal or debug outputs here.</p>"; + echo "<form method=\"post\" action=\"addcomment.php\">\n"; echo html_frame_start($mesTitle,500,"",0);
1
0
0
0
appdb/ ./objectManager.php include/objectManag ...
by WineHQ
09 Jun '07
09 Jun '07
ChangeSet ID: 31165 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/06/09 12:07:02 Modified files: . : objectManager.php include : objectManager.php vendor.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Add multi-page support to objectManager, use it for the vendor class Patch:
http://cvs.winehq.org/patch.py?id=31165
Old revision New revision Changes Path 1.12 1.13 +2 -2 appdb/objectManager.php 1.21 1.22 +109 -2 appdb/include/objectManager.php 1.28 1.29 +7 -0 appdb/include/vendor.php
1
0
0
0
appdb/ include/appData.php include/downloadurl ...
by WineHQ
09 Jun '07
09 Jun '07
ChangeSet ID: 31164 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/06/09 10:44:46 Modified files: include : appData.php downloadurl.php version_queue.php tables : appdb_tables.sql Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Fix app/version rejection. Version queue requeue wasn't requeueing its downloadurl, downloadurl class was missing objectManager functionality. Rejected appData wasn't being accounted for. Patch:
http://cvs.winehq.org/patch.py?id=31164
Old revision New revision Changes Path 1.21 1.22 +32 -2 appdb/include/appData.php 1.16 1.17 +21 -2 appdb/include/downloadurl.php 1.11 1.12 +8 -1 appdb/include/version_queue.php 1.32 1.33 +1 -1 appdb/tables/appdb_tables.sql Index: appdb/include/appData.php diff -u -p appdb/include/appData.php:1.21 appdb/include/appData.php:1.22 --- appdb/include/appData.php:1.21 9 Jun 2007 15:44:46 -0000 +++ appdb/include/appData.php 9 Jun 2007 15:44:46 -0000 @@ -52,6 +52,34 @@ class appData return $hResult; } + function reQueue() + { + if(!$this->canEdit()) + return FALSE; + + $sQuery = "UPDATE appData SET queued = '?' WHERE id = '?'"; + $hResult = query_parameters($sQuery, "true", $this->iId); + + if(!$hResult) + return FALSE; + else + return TRUE; + } + + function reject() + { + if(!$this->canEdit()) + return FALSE; + + $sQuery = "UPDATE appData SET queued = '?' WHERE id = '?'"; + $hResult = query_parameters($sQuery, "rejected", $this->iId); + + if(!$hResult) + return FALSE; + else + return TRUE; + } + function update($bSilent = FALSE) { if(!$this->canEdit()) @@ -122,7 +150,7 @@ class appData } /* Get appData for a given version/application, optionally filter by type */ - function getData($iId, $sType, $bIsVersion = TRUE, $bQueued = FALSE) + function getData($iId, $sType, $bIsVersion = TRUE, $bQueued = FALSE, $bRejected = FALSE) { $iAppId = 0; $iVersionId = 0; @@ -132,9 +160,11 @@ class appData else $iAppId = $iId; + $sQueued = objectManager::getQueueString($bQueued, $bRejected); + $hResult = query_parameters("SELECT * FROM appData WHERE appId = '?' AND versionId = '?' AND TYPE = '?' AND queued = '?'", - $iAppId, $iVersionId, $sType, $bQueued ? "true" : "false"); + $iAppId, $iVersionId, $sType, $sQueued); if(!$hResult || !mysql_num_rows($hResult)) return FALSE; Index: appdb/include/downloadurl.php diff -u -p appdb/include/downloadurl.php:1.16 appdb/include/downloadurl.php:1.17 --- appdb/include/downloadurl.php:1.16 9 Jun 2007 15:44:46 -0000 +++ appdb/include/downloadurl.php 9 Jun 2007 15:44:46 -0000 @@ -244,8 +244,13 @@ class downloadurl $sDownloadUrlDescription = $aValues["sDownloadUrlDescription"]; } else if($iVersionId) { - if($hResult = appData::getData($iVersionId, "downloadurl", - TRUE, TRUE)) + /* This illustrates the importance of converting downloadurl completely + to the objectManager model. If we don't get a match searching for + a queued entry, try finding a rejected one. */ + if(($hResult = appData::getData($iVersionId, "downloadurl", + TRUE, TRUE, FALSE)) || + $hResult = appData::getData($iVersionId, "downloadurl", + TRUE, TRUE, TRUE)) { $oRow = mysql_fetch_object($hResult); $sDownloadUrlUrl = $oRow->url; @@ -370,6 +375,20 @@ class downloadurl return TRUE; } + function reQueue() + { + $oAppData = new AppData($this->iId); + + return $oAppData->reQueue(); + } + + function reject() + { + $oAppData = new AppData($this->iId); + + return $oAppData->reject(); + } + function objectGetEntries($bQueued, $bRejected, $iRows = 0, $iStart = 0) { return appData::objectGetEntries($bQueued, $bRejected, $iRows, $iStart, Index: appdb/include/version_queue.php diff -u -p appdb/include/version_queue.php:1.11 appdb/include/version_queue.php:1.12 --- appdb/include/version_queue.php:1.11 9 Jun 2007 15:44:46 -0000 +++ appdb/include/version_queue.php 9 Jun 2007 15:44:46 -0000 @@ -16,7 +16,13 @@ class version_queue { $iTestingId = testData::getNewestTestIdFromVersionId($iVersionId, $this->oVersion->sQueued); - if($hResult = appData::getData($iVersionId, "downloadurl", TRUE, TRUE)) + /* This illustrates the importance of converting downloadurl completely + to the objectManager model. If we don't get a match searching for + a queued entry, try finding a rejected one. */ + if(($hResult = appData::getData($iVersionId, "downloadurl", + TRUE, TRUE, FALSE)) || + $hResult = appData::getData($iVersionId, "downloadurl", + TRUE, TRUE, TRUE)) { if($oRow = mysql_fetch_object($hResult)) $iDownloadUrlId = $oRow->id; @@ -46,6 +52,7 @@ class version_queue { $this->oVersion->reQueue(); $this->oTestDataQueue->reQueue(); + $this->oDownloadUrl->reQueue(); } function reject() Index: appdb/tables/appdb_tables.sql diff -u -p appdb/tables/appdb_tables.sql:1.32 appdb/tables/appdb_tables.sql:1.33 --- appdb/tables/appdb_tables.sql:1.32 9 Jun 2007 15:44:46 -0000 +++ appdb/tables/appdb_tables.sql 9 Jun 2007 15:44:46 -0000 @@ -140,7 +140,7 @@ create table appData ( url varchar(255) default NULL, submitTime timestamp(14) NOT NULL, submitterId int(11) NOT NULL default '0', - queued enum('true','false') NOT NULL default 'false', + queued enum('true','false','rejected') NOT NULL default 'false', KEY id (id), KEY versionId (versionId) );
1
0
0
0
Andrey Turkin : kernel32: Implement IO completion functions on top of the NT IoCompletion API.
by Alexandre Julliard
08 Jun '07
08 Jun '07
Module: wine Branch: master Commit: 6310819afb0ac294573551c2117f636ed8367ccc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6310819afb0ac294573551c21…
Author: Andrey Turkin <andrey.turkin(a)gmail.com> Date: Sat Jun 2 02:32:07 2007 +0400 kernel32: Implement IO completion functions on top of the NT IoCompletion API. --- dlls/kernel32/sync.c | 75 ++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 67 insertions(+), 8 deletions(-) diff --git a/dlls/kernel32/sync.c b/dlls/kernel32/sync.c index be536a4..07bd9b0 100644 --- a/dlls/kernel32/sync.c +++ b/dlls/kernel32/sync.c @@ -1811,12 +1811,45 @@ BOOL WINAPI SetMailslotInfo( HANDLE hMailslot, DWORD dwReadTimeout) HANDLE WINAPI CreateIoCompletionPort(HANDLE hFileHandle, HANDLE hExistingCompletionPort, ULONG_PTR CompletionKey, DWORD dwNumberOfConcurrentThreads) { - FIXME("(%p, %p, %08lx, %08x): stub.\n", + NTSTATUS status; + HANDLE ret = 0; + + TRACE("(%p, %p, %08lx, %08x)\n", hFileHandle, hExistingCompletionPort, CompletionKey, dwNumberOfConcurrentThreads); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return NULL; -} + if (hExistingCompletionPort && hFileHandle == INVALID_HANDLE_VALUE) + { + SetLastError( ERROR_INVALID_PARAMETER); + return NULL; + } + + if (hExistingCompletionPort) + ret = hExistingCompletionPort; + else + { + status = NtCreateIoCompletion( &ret, IO_COMPLETION_ALL_ACCESS, NULL, dwNumberOfConcurrentThreads ); + if (status != STATUS_SUCCESS) goto fail; + } + + if (hFileHandle != INVALID_HANDLE_VALUE) + { + FILE_COMPLETION_INFORMATION info; + IO_STATUS_BLOCK iosb; + + info.CompletionPort = ret; + info.CompletionKey = CompletionKey; + status = NtSetInformationFile( hFileHandle, &iosb, &info, sizeof(info), FileCompletionInformation ); + if (status != STATUS_SUCCESS) goto fail; + } + + return ret; + +fail: + if (ret && !hExistingCompletionPort) + CloseHandle( ret ); + SetLastError( RtlNtStatusToDosError(status) ); + return 0; +} /****************************************************************************** * GetQueuedCompletionStatus (KERNEL32.@) @@ -1825,17 +1858,43 @@ BOOL WINAPI GetQueuedCompletionStatus( HANDLE CompletionPort, LPDWORD lpNumberOf PULONG_PTR pCompletionKey, LPOVERLAPPED *lpOverlapped, DWORD dwMilliseconds ) { - FIXME("(%p,%p,%p,%p,%d), stub!\n", + NTSTATUS status; + IO_STATUS_BLOCK iosb; + LARGE_INTEGER wait_time; + + TRACE("(%p,%p,%p,%p,%d)\n", CompletionPort,lpNumberOfBytesTransferred,pCompletionKey,lpOverlapped,dwMilliseconds); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + + *lpOverlapped = NULL; + + status = NtRemoveIoCompletion( CompletionPort, pCompletionKey, (PULONG_PTR)lpOverlapped, + &iosb, get_nt_timeout( &wait_time, dwMilliseconds ) ); + if (status == STATUS_SUCCESS) + { + *lpNumberOfBytesTransferred = iosb.Information; + return TRUE; + } + + SetLastError( RtlNtStatusToDosError(status) ); return FALSE; } + +/****************************************************************************** + * PostQueuedCompletionStatus (KERNEL32.@) + */ BOOL WINAPI PostQueuedCompletionStatus( HANDLE CompletionPort, DWORD dwNumberOfBytes, ULONG_PTR dwCompletionKey, LPOVERLAPPED lpOverlapped) { - FIXME("%p %d %08lx %p\n", CompletionPort, dwNumberOfBytes, dwCompletionKey, lpOverlapped ); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + NTSTATUS status; + + TRACE("%p %d %08lx %p\n", CompletionPort, dwNumberOfBytes, dwCompletionKey, lpOverlapped ); + + status = NtSetIoCompletion( CompletionPort, dwCompletionKey, (ULONG_PTR)lpOverlapped, + STATUS_SUCCESS, dwNumberOfBytes ); + + if (status == STATUS_SUCCESS) return TRUE; + SetLastError( RtlNtStatusToDosError(status) ); return FALSE; }
1
0
0
0
Andrey Turkin : kernel32: Factor out all kernel32 timeout-conversion snippets to one helper functions .
by Alexandre Julliard
08 Jun '07
08 Jun '07
Module: wine Branch: master Commit: dd49801752e5f7aa5f47fff8bd49a89e27c698a0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dd49801752e5f7aa5f47fff8b…
Author: Andrey Turkin <andrey.turkin(a)gmail.com> Date: Sat Jun 2 02:30:01 2007 +0400 kernel32: Factor out all kernel32 timeout-conversion snippets to one helper functions. --- dlls/kernel32/sync.c | 51 +++++++++++++++++-------------------------------- 1 files changed, 18 insertions(+), 33 deletions(-) diff --git a/dlls/kernel32/sync.c b/dlls/kernel32/sync.c index ff987c3..be536a4 100644 --- a/dlls/kernel32/sync.c +++ b/dlls/kernel32/sync.c @@ -82,6 +82,14 @@ HANDLE get_BaseNamedObjects_handle(void) return handle; } +/* helper for kernel32->ntdll timeout format conversion */ +static inline PLARGE_INTEGER get_nt_timeout( PLARGE_INTEGER pTime, DWORD timeout ) +{ + if (timeout == INFINITE) return NULL; + pTime->QuadPart = (ULONGLONG)timeout * -10000; + return pTime; +} + /*********************************************************************** * Sleep (KERNEL32.@) */ @@ -96,18 +104,11 @@ VOID WINAPI Sleep( DWORD timeout ) DWORD WINAPI SleepEx( DWORD timeout, BOOL alertable ) { NTSTATUS status; + LARGE_INTEGER time; - if (timeout == INFINITE) status = NtDelayExecution( alertable, NULL ); - else - { - LARGE_INTEGER time; - - time.QuadPart = timeout * (ULONGLONG)10000; - time.QuadPart = -time.QuadPart; - status = NtDelayExecution( alertable, &time ); - } - if (status != STATUS_USER_APC) status = STATUS_SUCCESS; - return status; + status = NtDelayExecution( alertable, get_nt_timeout( &time, timeout ) ); + if (status == STATUS_USER_APC) return WAIT_IO_COMPLETION; + return 0; } @@ -158,6 +159,7 @@ DWORD WINAPI WaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, { NTSTATUS status; HANDLE hloc[MAXIMUM_WAIT_OBJECTS]; + LARGE_INTEGER time; unsigned int i; if (count > MAXIMUM_WAIT_OBJECTS) @@ -187,18 +189,8 @@ DWORD WINAPI WaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, } } - if (timeout == INFINITE) - { - status = NtWaitForMultipleObjects( count, hloc, wait_all, alertable, NULL ); - } - else - { - LARGE_INTEGER time; - - time.QuadPart = timeout * (ULONGLONG)10000; - time.QuadPart = -time.QuadPart; - status = NtWaitForMultipleObjects( count, hloc, wait_all, alertable, &time ); - } + status = NtWaitForMultipleObjects( count, hloc, wait_all, alertable, + get_nt_timeout( &time, timeout ) ); if (HIWORD(status)) /* is it an error code? */ { @@ -302,20 +294,13 @@ DWORD WINAPI SignalObjectAndWait( HANDLE hObjectToSignal, HANDLE hObjectToWaitOn DWORD dwMilliseconds, BOOL bAlertable ) { NTSTATUS status; - LARGE_INTEGER timeout, *ptimeout = NULL; + LARGE_INTEGER timeout; TRACE("%p %p %d %d\n", hObjectToSignal, hObjectToWaitOn, dwMilliseconds, bAlertable); - if (dwMilliseconds != INFINITE) - { - timeout.QuadPart = dwMilliseconds * (ULONGLONG)10000; - timeout.QuadPart = -timeout.QuadPart; - ptimeout = &timeout; - } - - status = NtSignalAndWaitForSingleObject( hObjectToSignal, hObjectToWaitOn, - bAlertable, ptimeout ); + status = NtSignalAndWaitForSingleObject( hObjectToSignal, hObjectToWaitOn, bAlertable, + get_nt_timeout( &timeout, dwMilliseconds ) ); if (HIWORD(status)) { SetLastError( RtlNtStatusToDosError(status) );
1
0
0
0
Andrey Turkin : ntdll: Stub and document IoCompletion APIs.
by Alexandre Julliard
08 Jun '07
08 Jun '07
Module: wine Branch: master Commit: ad5f94d0f729102115a540adf0a123c29af22f9b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ad5f94d0f729102115a540adf…
Author: Andrey Turkin <andrey.turkin(a)gmail.com> Date: Sat Jun 2 02:30:14 2007 +0400 ntdll: Stub and document IoCompletion APIs. --- dlls/ntdll/ntdll.spec | 14 ++++---- dlls/ntdll/sync.c | 90 +++++++++++++++++++++++++++++++++++++++++++++--- include/winternl.h | 19 ++++++---- 3 files changed, 102 insertions(+), 21 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=ad5f94d0f729102115a54…
1
0
0
0
Alexandre Julliard : msvcrt: Set the correct ebp value before calling the local unwind handler.
by Alexandre Julliard
08 Jun '07
08 Jun '07
Module: wine Branch: master Commit: 72bc7429e496b3d9a45806eb95f1be2461731604 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=72bc7429e496b3d9a45806eb9…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jun 8 12:56:19 2007 +0200 msvcrt: Set the correct ebp value before calling the local unwind handler. --- dlls/msvcrt/except.c | 73 ++++++++++++++++++++++++++++------------------ dlls/msvcrt/msvcrt.spec | 2 +- 2 files changed, 45 insertions(+), 30 deletions(-) diff --git a/dlls/msvcrt/except.c b/dlls/msvcrt/except.c index c924088..aef5133 100644 --- a/dlls/msvcrt/except.c +++ b/dlls/msvcrt/except.c @@ -71,15 +71,26 @@ static inline void call_finally_block( void *code_block, void *base_ptr ) : : "a" (code_block), "g" (base_ptr)); } -static inline DWORD call_filter( void *func, void *arg, void *ebp ) +static inline int call_filter( int (*func)(PEXCEPTION_POINTERS), void *arg, void *ebp ) { - DWORD ret; + int ret; __asm__ __volatile__ ("pushl %%ebp; pushl %3; movl %2,%%ebp; call *%%eax; popl %%ebp; popl %%ebp" : "=a" (ret) : "0" (func), "r" (ebp), "r" (arg) : "ecx", "edx", "memory" ); return ret; } + +static inline int call_unwind_func( int (*func)(void), void *ebp ) +{ + int ret; + __asm__ __volatile__ ("pushl %%ebp; movl %2,%%ebp; call *%0; popl %%ebp" + : "=a" (ret) + : "0" (func), "r" (ebp) + : "ecx", "edx", "memory" ); + return ret; +} + #endif static DWORD MSVCRT_nested_handler(PEXCEPTION_RECORD rec, @@ -109,21 +120,8 @@ __ASM_GLOBAL_FUNC(_EH_prolog, "leal 12(%esp), %ebp\n\t" "pushl %eax\n\t" "ret") -#endif -/******************************************************************* - * _global_unwind2 (MSVCRT.@) - */ -void CDECL _global_unwind2(EXCEPTION_REGISTRATION_RECORD* frame) -{ - TRACE("(%p)\n",frame); - RtlUnwind( frame, 0, 0, 0 ); -} - -/******************************************************************* - * _local_unwind2 (MSVCRT.@) - */ -void CDECL _local_unwind2(MSVCRT_EXCEPTION_FRAME* frame, int trylevel) +static void msvcrt_local_unwind2(MSVCRT_EXCEPTION_FRAME* frame, int trylevel, void *ebp) { EXCEPTION_REGISTRATION_RECORD reg; @@ -140,16 +138,34 @@ void CDECL _local_unwind2(MSVCRT_EXCEPTION_FRAME* frame, int trylevel) frame->trylevel = frame->scopetable[level].previousTryLevel; if (!frame->scopetable[level].lpfnFilter) { - FIXME( "__try block cleanup level %d handler %p not fully implemented\n", - level, frame->scopetable[level].lpfnHandler ); - /* FIXME: should probably set ebp to frame->_ebp */ - frame->scopetable[level].lpfnHandler(); + TRACE( "__try block cleanup level %d handler %p ebp %p\n", + level, frame->scopetable[level].lpfnHandler, ebp ); + call_unwind_func( frame->scopetable[level].lpfnHandler, ebp ); } } __wine_pop_frame(®); TRACE("unwound OK\n"); } +/******************************************************************* + * _local_unwind2 (MSVCRT.@) + */ +void CDECL _local_unwind2(MSVCRT_EXCEPTION_FRAME* frame, int trylevel) +{ + msvcrt_local_unwind2( frame, trylevel, &frame->_ebp ); +} + +#endif /* __i386__ */ + +/******************************************************************* + * _global_unwind2 (MSVCRT.@) + */ +void CDECL _global_unwind2(EXCEPTION_REGISTRATION_RECORD* frame) +{ + TRACE("(%p)\n",frame); + RtlUnwind( frame, 0, 0, 0 ); +} + /********************************************************************* * _except_handler2 (MSVCRT.@) */ @@ -172,8 +188,7 @@ int CDECL _except_handler3(PEXCEPTION_RECORD rec, PCONTEXT context, void* dispatcher) { #if defined(__GNUC__) && defined(__i386__) - long retval; - int trylevel; + int retval, trylevel; EXCEPTION_POINTERS exceptPtrs; PSCOPETABLE pScopeTable; @@ -186,7 +201,7 @@ int CDECL _except_handler3(PEXCEPTION_RECORD rec, if (rec->ExceptionFlags & (EH_UNWINDING | EH_EXIT_UNWIND)) { /* Unwinding the current frame */ - _local_unwind2(frame, TRYLEVEL_END); + msvcrt_local_unwind2(frame, TRYLEVEL_END, &frame->_ebp); TRACE("unwound current frame, returning ExceptionContinueSearch\n"); return ExceptionContinueSearch; } @@ -218,7 +233,7 @@ int CDECL _except_handler3(PEXCEPTION_RECORD rec, { /* Unwind all higher frames, this one will handle the exception */ _global_unwind2((EXCEPTION_REGISTRATION_RECORD*)frame); - _local_unwind2(frame, trylevel); + msvcrt_local_unwind2(frame, trylevel, &frame->_ebp); /* Set our trylevel to the enclosing block, and call the __finally * code, which won't return @@ -298,7 +313,7 @@ DEFINE_SETJMP_ENTRYPOINT(MSVCRT__setjmp) int CDECL __regs_MSVCRT__setjmp(struct MSVCRT___JUMP_BUFFER *jmp) { jmp->Registration = (unsigned long)NtCurrentTeb()->Tib.ExceptionList; - if (jmp->Registration == TRYLEVEL_END) + if (jmp->Registration == ~0UL) jmp->TryLevel = TRYLEVEL_END; else jmp->TryLevel = ((MSVCRT_EXCEPTION_FRAME*)jmp->Registration)->trylevel; @@ -317,7 +332,7 @@ int CDECL __regs_MSVCRT__setjmp3(struct MSVCRT___JUMP_BUFFER *jmp, int nb_args, jmp->Cookie = MSVCRT_JMP_MAGIC; jmp->UnwindFunc = 0; jmp->Registration = (unsigned long)NtCurrentTeb()->Tib.ExceptionList; - if (jmp->Registration == TRYLEVEL_END) + if (jmp->Registration == ~0UL) { jmp->TryLevel = TRYLEVEL_END; } @@ -367,8 +382,8 @@ int CDECL MSVCRT_longjmp(struct MSVCRT___JUMP_BUFFER *jmp, int retval) unwind_func(jmp); } else - _local_unwind2((MSVCRT_EXCEPTION_FRAME*)jmp->Registration, - jmp->TryLevel); + msvcrt_local_unwind2((MSVCRT_EXCEPTION_FRAME*)jmp->Registration, + jmp->TryLevel, (void *)jmp->Ebp); } if (!retval) @@ -382,7 +397,7 @@ int CDECL MSVCRT_longjmp(struct MSVCRT___JUMP_BUFFER *jmp, int retval) */ void __stdcall _seh_longjmp_unwind(struct MSVCRT___JUMP_BUFFER *jmp) { - _local_unwind2( (MSVCRT_EXCEPTION_FRAME *)jmp->Registration, jmp->TryLevel ); + msvcrt_local_unwind2( (MSVCRT_EXCEPTION_FRAME *)jmp->Registration, jmp->TryLevel, (void *)jmp->Ebp ); } #endif /* i386 */ diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 66f2ede..cb427ab 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -323,7 +323,7 @@ @ cdecl _kbhit() @ cdecl _lfind(ptr ptr ptr long ptr) @ cdecl _loaddll(str) -@ cdecl _local_unwind2(ptr long) +@ cdecl -i386 _local_unwind2(ptr long) @ cdecl _lock(long) @ cdecl _locking(long long long) @ cdecl _logb( double )
1
0
0
0
Alexandre Julliard : cmd.exe: Silence a FIXME.
by Alexandre Julliard
08 Jun '07
08 Jun '07
Module: wine Branch: master Commit: abc5fefadaee3bd9436cf81edbccc42beeac3e0b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=abc5fefadaee3bd9436cf81ed…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jun 8 12:54:21 2007 +0200 cmd.exe: Silence a FIXME. --- programs/cmd/builtins.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index f5310b7..a7cc2b1 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -1469,7 +1469,7 @@ void WCMD_setshow_default (WCHAR *command) { strcpyW(env, equalW); memcpy(env+1, string, 2 * sizeof(WCHAR)); env[3] = 0x00; - WINE_FIXME("Setting '%s' to '%s'\n", wine_dbgstr_w(env), wine_dbgstr_w(string)); + WINE_TRACE("Setting '%s' to '%s'\n", wine_dbgstr_w(env), wine_dbgstr_w(string)); SetEnvironmentVariable(env, string); }
1
0
0
0
← Newer
1
...
62
63
64
65
66
67
68
...
86
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
Results per page:
10
25
50
100
200