Fix CONTRACT return type (#4649)
authorTom McDonald <tommcdon@microsoft.com>
Wed, 1 May 2024 02:26:21 +0000 (22:26 -0400)
committerGitHub <noreply@github.com>
Wed, 1 May 2024 02:26:21 +0000 (22:26 -0400)
src/shared/utilcode/sstring_com.cpp

index 396ec95d73593f8b61fb2813ecc3c99f4bf9b4a6..9449b3d05ad274b25038c001b8da70f1cef76c52 100644 (file)
@@ -28,7 +28,7 @@ HRESULT SString::LoadResourceAndReturnHR(CCompRC::ResourceCategory eCategory, in
 
 HRESULT SString::LoadResourceAndReturnHR(CCompRC* pResourceDLL, CCompRC::ResourceCategory eCategory, int resourceID)
 {
-    CONTRACT(BOOL)
+    CONTRACT(HRESULT)
     {
         INSTANCE_CHECK;
         NOTHROW;