Browse files

HRESULT refactor oopsie

  • Loading branch information...
1 parent cb0fe0e commit 610409fab8c10d21b68e00be2d7420f9b20700ee @riverar committed Apr 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 hashlnk.cpp
View
4 hashlnk.cpp
@@ -35,7 +35,7 @@ DEFINE_PROPERTYKEY(PKEY_WINX_HASH, 0xFB8D2D7B, 0x90D1, 0x4E34, 0xBF, 0x60, 0x6E,
if(FAILED(HR)) \
{ \
wprintf(L"%s (hr: %X)\r\n", MESSAGE, hr); \
- return HRESULT_FROM_WIN32(HR); \
+ return HR; \
}
using namespace std;
@@ -91,7 +91,7 @@ int wmain(int argc, wchar_t* argv[])
if(FAILED(hr) && hr != HRESULT_FROM_WIN32(ERROR_NOT_FOUND))
{
wprintf(L"Failed to retrieve target arguments.");
- return HRESULT_FROM_WIN32(hr);
+ return hr;
}
wchar_t* targetPathSansRoot = PathSkipRootW(targetPath);

0 comments on commit 610409f

Please sign in to comment.