Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
54415368
Commit
54415368
authored
Jan 16, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jan 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfc: Forward SfcIsFileProtected to sfc_os.dll.
parent
161897e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
31 deletions
+17
-31
sfc.spec
dlls/sfc/sfc.spec
+1
-1
sfc_main.c
dlls/sfc/sfc_main.c
+16
-30
No files found.
dlls/sfc/sfc.spec
View file @
54415368
@ stub SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr)
@ stdcall SfcIsFileProtected(ptr wstr)
sfc_os.SfcIsFileProtected
dlls/sfc/sfc_main.c
View file @
54415368
...
...
@@ -20,49 +20,35 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Moved to sfc_os.dll since XP
*
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "sfc.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
sfc
);
/******************************************************************
* SfcIsFileProtected [SFC.@]
*
* Check, if the given File is protected by the System
*
* PARAMS
* RpcHandle [I] This must be NULL
* ProtFileName [I] Filename with Path to check
*
* RETURNS
* Failure: FALSE with GetLastError() != ERROR_FILE_NOT_FOUND
* Success: TRUE, when the File is Protected
* FALSE with GetLastError() == ERROR_FILE_NOT_FOUND,
* when the File is not Protected
*
*
* BUGS
* We return always the Result for: "File is not Protected"
*
* DllMain
*/
BOOL
WINAPI
SfcIsFileProtected
(
HANDLE
RpcHandle
,
LPCWSTR
ProtFileName
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
static
BOOL
reported
=
FALSE
;
TRACE
(
"(%p, %d, %p)
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
)
;
if
(
reported
)
{
TRACE
(
"(%p, %s) stub
\n
"
,
RpcHandle
,
debugstr_w
(
ProtFileName
));
}
else
switch
(
fdwReason
)
{
FIXME
(
"(%p, %s) stub
\n
"
,
RpcHandle
,
debugstr_w
(
ProtFileName
));
reported
=
TRUE
;
}
case
DLL_WINE_PREATTACH
:
return
FALSE
;
/* prefer native version */
SetLastError
(
ERROR_FILE_NOT_FOUND
);
return
FALSE
;
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
break
;
}
return
TRUE
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment