Module: wine
Branch: master
Commit: 27ae234b04d2d9617bcbc0e3d900b394ccbba349
URL: http://source.winehq.org/git/wine.git/?a=commit;h=27ae234b04d2d9617bcbc0e3d…
Author: Rob Shearman <robertshearman(a)gmail.com>
Date: Sun Aug 17 18:33:42 2008 +0100
rpcrt4: Remove unreachable code in EmbeddedComplexSize.
RPC_FC_ERROR_STATUS_T has a value of 0x10 and therefore isn't a
possible value of "flags_type & 0xf" in the switch statement.
---
dlls/rpcrt4/ndr_marshall.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index 4f5506c..bda04be 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -2584,8 +2584,6 @@ static unsigned long EmbeddedComplexSize(MIDL_STUB_MESSAGE *pStubMsg,
return sizeof(double);
case RPC_FC_HYPER:
return sizeof(ULONGLONG);
- case RPC_FC_ERROR_STATUS_T:
- return sizeof(error_status_t);
case RPC_FC_ENUM16:
return sizeof(UINT);
default:
Module: wine
Branch: master
Commit: 3261814e08e791c64d53c2c285dd7ef4231d1039
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3261814e08e791c64d53c2c28…
Author: Rob Shearman <robertshearman(a)gmail.com>
Date: Sun Aug 17 18:32:26 2008 +0100
shell32: Don't assign a result from a function that returns a BOOL to an HRESULT in shellex_get_dataobj.
Otherwise there could be confusion as to what type GetFullPathNameW is
returning.
---
dlls/shell32/shlexec.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c
index d83a132..bf820ca 100644
--- a/dlls/shell32/shlexec.c
+++ b/dlls/shell32/shlexec.c
@@ -1091,10 +1091,11 @@ static IDataObject *shellex_get_dataobj( LPSHELLEXECUTEINFOW sei )
else
{
WCHAR fullpath[MAX_PATH];
+ BOOL ret;
fullpath[0] = 0;
- r = GetFullPathNameW( sei->lpFile, MAX_PATH, fullpath, NULL );
- if (!r)
+ ret = GetFullPathNameW( sei->lpFile, MAX_PATH, fullpath, NULL );
+ if (!ret)
goto end;
pidl = ILCreateFromPathW( fullpath );