Void functions can't return a value

Gregg Mattinson gm138242 at scot.canada.sun.com
Tue Jul 2 14:34:44 CDT 2002


Changelog: dlls/ddraw/dsurface/fakezbuffer.c dlls/ntdll/rtlstr.c
           dlls/shell32/shellpath.c dlls/user/wnd16.c
 - void functions can't return a value, even if it is the return value from
   another void function.

Gregg Mattinson
Co-op Developer
Sun Microsystems of Canada

-------------- next part --------------
Index: dlls/ddraw/dsurface/fakezbuffer.c
===================================================================
RCS file: /opcom/comp/ws/wine/CVSROOT/wine/dlls/ddraw/dsurface/fakezbuffer.c,v
retrieving revision 1.1
diff -u -r1.1 fakezbuffer.c
--- /tmp/T0WxaauF	Tue Jul  2 13:50:20 2002
+++ fakezbuffer.c	Mon Jun 24 16:44:29 2002
@@ -90,7 +90,7 @@
 void
 FakeZBuffer_DirectDrawSurface_final_release(IDirectDrawSurfaceImpl* This)
 {
-    return Main_DirectDrawSurface_final_release(This);
+    Main_DirectDrawSurface_final_release(This);
 }
 
 HRESULT
Index: dlls/ntdll/rtlstr.c
===================================================================
RCS file: /opcom/comp/ws/wine/CVSROOT/wine/dlls/ntdll/rtlstr.c,v
retrieving revision 1.1
diff -u -r1.1 rtlstr.c
--- /tmp/T0YiaqyF	Tue Jul  2 13:51:12 2002
+++ rtlstr.c	Mon Jun 24 15:28:31 2002
@@ -84,7 +84,7 @@
  */
 void WINAPI RtlInitString( PSTRING target, LPCSTR source )
 {
-    return RtlInitAnsiString( target, source );
+    RtlInitAnsiString( target, source );
 }
 
 
Index: dlls/shell32/shellpath.c
===================================================================
RCS file: /opcom/comp/ws/wine/CVSROOT/wine/dlls/shell32/shellpath.c,v
retrieving revision 1.1
diff -u -r1.1 shellpath.c
--- /tmp/T0T0aOBF	Tue Jul  2 13:51:44 2002
+++ shellpath.c	Tue Jun 25 08:05:34 2002
@@ -183,8 +183,8 @@
 void WINAPI PathStripPathAW(LPVOID lpszPath)
 {
 	if (SHELL_OsIsUnicode())
-	  return PathStripPathW(lpszPath);
-	return PathStripPathA(lpszPath);
+	  PathStripPathW(lpszPath);
+	PathStripPathA(lpszPath);
 }
 
 /*************************************************************************
@@ -213,8 +213,8 @@
 void WINAPI PathRemoveExtensionAW(LPVOID lpszPath)
 {
 	if (SHELL_OsIsUnicode())
-	  return PathRemoveExtensionW(lpszPath);
-	return PathRemoveExtensionA(lpszPath);
+	  PathRemoveExtensionW(lpszPath);
+	PathRemoveExtensionA(lpszPath);
 }
 
 
@@ -266,8 +266,8 @@
 VOID WINAPI PathQuoteSpacesAW (LPVOID lpszPath)
 {
 	if(SHELL_OsIsUnicode())
-	  return PathQuoteSpacesW(lpszPath);
-	return PathQuoteSpacesA(lpszPath);
+	  PathQuoteSpacesW(lpszPath);
+	PathQuoteSpacesA(lpszPath);
 }
 
 /*************************************************************************
@@ -636,8 +636,8 @@
  */
 VOID WINAPI PathSetDlgItemPathAW(HWND hDlg, int id, LPCVOID pszPath)
 {	if (SHELL_OsIsUnicode())
-	  return PathSetDlgItemPathW(hDlg, id, pszPath);
-	return PathSetDlgItemPathA(hDlg, id, pszPath);
+	  PathSetDlgItemPathW(hDlg, id, pszPath);
+	PathSetDlgItemPathA(hDlg, id, pszPath);
 }
 
 
Index: dlls/user/wnd16.c
===================================================================
RCS file: /opcom/comp/ws/wine/CVSROOT/wine/dlls/user/wnd16.c,v
retrieving revision 1.1
diff -u -r1.1 wnd16.c
--- /tmp/T06IaWCF	Tue Jul  2 13:51:59 2002
+++ wnd16.c	Mon Jun 24 16:34:25 2002
@@ -1461,7 +1461,7 @@
  */
 void WINAPI CalcChildScroll16( HWND16 hwnd, WORD scroll )
 {
-    return CalcChildScroll( WIN_Handle32(hwnd), scroll );
+    CalcChildScroll( WIN_Handle32(hwnd), scroll );
 }
 
 


More information about the wine-patches mailing list