[PATCH] gcc 2.95 fixes
| Newsgroups | gmane.comp.emulators.winex.devel |
|---|---|
| Message-ID | <[email protected]> |
The attached patch makes gcc 2.95 happy. Also it is just good practice to declare variables at the top of their scope. I'd appreciate it if it was applied to CVS. -- <Douglas Leonard> <[email protected]>
winex.patch
(text/plain, 1.2 KB)
diff -urN --exclude=CVS winex/dlls/ntdll/critsection.c winex.fixed/dlls/ntdll/critsection.c
--- winex/dlls/ntdll/critsection.c 2004-03-24 10:17:19.000000000 -0800
+++ winex.fixed/dlls/ntdll/critsection.c 2004-03-24 10:32:14.000000000 -0800
@@ -373,11 +373,12 @@
EXCEPTION_RECORD rec;
HANDLE sem = get_semaphore( crit );
+ DWORD res = WaitForSingleObject( sem, 5000L );
+
/* MSDN article seems to say that these both have same purpose */
interlocked_inc( &crit->DebugInfo->EntryCount );
interlocked_inc( &crit->DebugInfo->ContentionCount );
- DWORD res = WaitForSingleObject( sem, 5000L );
if ( res == WAIT_TIMEOUT )
{
display_wait_error( crit, "Timeout. Retry with 60 secs" );
diff -urN --exclude=CVS winex/dlls/wininet/http.c winex.fixed/dlls/wininet/http.c
--- winex/dlls/wininet/http.c 2004-03-03 23:34:18.000000000 -0800
+++ winex.fixed/dlls/wininet/http.c 2004-03-04 19:41:11.000000000 -0800
@@ -154,10 +154,10 @@
{
CHAR *szHeader = NULL;
- TRACE("->\n");
-
BOOL ret = FALSE;
+ TRACE("->\n");
+
if (lpszHeader)
{
INT lenHeader = lstrlenW(lpszHeader)+1;