Commit 3261814e authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

shell32: Don't assign a result from a function that returns a BOOL to an HRESULT…

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.
parent 5dd6d798
...@@ -1091,10 +1091,11 @@ static IDataObject *shellex_get_dataobj( LPSHELLEXECUTEINFOW sei ) ...@@ -1091,10 +1091,11 @@ static IDataObject *shellex_get_dataobj( LPSHELLEXECUTEINFOW sei )
else else
{ {
WCHAR fullpath[MAX_PATH]; WCHAR fullpath[MAX_PATH];
BOOL ret;
fullpath[0] = 0; fullpath[0] = 0;
r = GetFullPathNameW( sei->lpFile, MAX_PATH, fullpath, NULL ); ret = GetFullPathNameW( sei->lpFile, MAX_PATH, fullpath, NULL );
if (!r) if (!ret)
goto end; goto end;
pidl = ILCreateFromPathW( fullpath ); pidl = ILCreateFromPathW( fullpath );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment