Updated return values for DecryptFileW and DecryptFileA according to windows standards.

Brad Baago bbaago at gmail.com
Sun Aug 10 21:44:30 CDT 2014


>From 8fb753dcad879fe6bc88ba19e209dc5ea85f8856 Mon Sep 17 00:00:00 2001
From: Brad <bbaago at gmail.com>
Date: Sun, 10 Aug 2014 22:29:15 -0400
Subject: Updated DecryptFileW and DecryptFileA to return the right value
upon
 failure.
To: wine-patches <wine-patches at winehq.org>
Reply-To: wine-devel <wine-devel at winehq.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------1.9.1"

This is a multi-part message in MIME format.
--------------1.9.1
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
 dlls/advapi32/security.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


--------------1.9.1
Content-Type: text/x-patch;
name="0001-Updated-DecryptFileW-and-DecryptFileA-to-return-the-.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment;
filename="0001-Updated-DecryptFileW-and-DecryptFileA-to-return-the-.patch"

diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c
index 3dc40dc..3cf7bef 100644
--- a/dlls/advapi32/security.c
+++ b/dlls/advapi32/security.c
@@ -5673,7 +5673,7 @@ DWORD WINAPI GetNamedSecurityInfoExA( LPCSTR
object, SE_OBJECT_TYPE type,
 BOOL WINAPI DecryptFileW(LPCWSTR lpFileName, DWORD dwReserved)
 {
     FIXME("(%s, %08x): stub\n", debugstr_w(lpFileName), dwReserved);
-    return TRUE;
+    return 0;
 }
 
 /******************************************************************************
@@ -5682,7 +5682,7 @@ BOOL WINAPI DecryptFileW(LPCWSTR lpFileName, DWORD
dwReserved)
 BOOL WINAPI DecryptFileA(LPCSTR lpFileName, DWORD dwReserved)
 {
     FIXME("(%s, %08x): stub\n", debugstr_a(lpFileName), dwReserved);
-    return TRUE;
+    return 0;
 }
 
 /******************************************************************************

--------------1.9.1--





More information about the wine-patches mailing list