Void functions can't return a value

Joerg Mayer jmayer at loplof.de
Tue Jul 2 15:14:36 CDT 2002


On Tue, Jul 02, 2002 at 03:34:44PM -0400, Gregg Mattinson wrote:
>  - void functions can't return a value, even if it is the return value from
>    another void function.

Just looking at the patch a bit. This looks wrong to me. If you want to
make the changes, you should convert return xxx() into { xxx(); return }

>  void WINAPI PathStripPathAW(LPVOID lpszPath)
>  {
>  	if (SHELL_OsIsUnicode())
> -	  return PathStripPathW(lpszPath);
> -	return PathStripPathA(lpszPath);
> +	  PathStripPathW(lpszPath);
> +	PathStripPathA(lpszPath);        <----- should not be executed if condition is met
>  }

This pattern is repeated several times.

 Ciao
        Jörg

--
Joerg Mayer                                          <jmayer at loplof.de>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.




More information about the wine-devel mailing list