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
c8160055
Commit
c8160055
authored
Oct 03, 2003
by
Pavel Roskin
Committed by
Alexandre Julliard
Oct 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented GetCompressedFileSize[AW].
parent
d6507196
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
31 deletions
+59
-31
file.c
files/file.c
+59
-0
newfns.c
win32/newfns.c
+0
-31
No files found.
files/file.c
View file @
c8160055
...
...
@@ -987,6 +987,65 @@ BOOL WINAPI SetFileAttributesA(LPCSTR lpFileName, DWORD attributes)
}
/******************************************************************************
* GetCompressedFileSizeA [KERNEL32.@]
*/
DWORD
WINAPI
GetCompressedFileSizeA
(
LPCSTR
lpFileName
,
LPDWORD
lpFileSizeHigh
)
{
UNICODE_STRING
filenameW
;
DWORD
ret
;
if
(
RtlCreateUnicodeStringFromAsciiz
(
&
filenameW
,
lpFileName
))
{
ret
=
GetCompressedFileSizeW
(
filenameW
.
Buffer
,
lpFileSizeHigh
);
RtlFreeUnicodeString
(
&
filenameW
);
}
else
{
ret
=
INVALID_FILE_SIZE
;
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
}
return
ret
;
}
/******************************************************************************
* GetCompressedFileSizeW [KERNEL32.@]
*
* RETURNS
* Success: Low-order doubleword of number of bytes
* Failure: INVALID_FILE_SIZE
*/
DWORD
WINAPI
GetCompressedFileSizeW
(
LPCWSTR
lpFileName
,
/* [in] Pointer to name of file */
LPDWORD
lpFileSizeHigh
)
/* [out] Receives high-order doubleword of size */
{
DOS_FULL_NAME
full_name
;
struct
stat
st
;
DWORD
low
;
TRACE
(
"(%s,%p)
\n
"
,
debugstr_w
(
lpFileName
),
lpFileSizeHigh
);
if
(
!
DOSFS_GetFullName
(
lpFileName
,
TRUE
,
&
full_name
))
return
INVALID_FILE_SIZE
;
if
(
stat
(
full_name
.
long_name
,
&
st
)
!=
0
)
{
FILE_SetDosError
();
return
INVALID_FILE_SIZE
;
}
#if HAVE_STRUCT_STAT_ST_BLOCKS
/* blocks are 512 bytes long */
if
(
lpFileSizeHigh
)
*
lpFileSizeHigh
=
(
st
.
st_blocks
>>
23
);
low
=
(
DWORD
)(
st
.
st_blocks
<<
9
);
#else
if
(
lpFileSizeHigh
)
*
lpFileSizeHigh
=
(
st
.
st_size
>>
32
);
low
=
(
DWORD
)
st
.
st_size
;
#endif
return
low
;
}
/***********************************************************************
* GetFileTime (KERNEL32.@)
*/
...
...
win32/newfns.c
View file @
c8160055
...
...
@@ -46,37 +46,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(win32);
/******************************************************************************
* GetCompressedFileSizeA [KERNEL32.@]
*
* NOTES
* This should call the W function below
*/
DWORD
WINAPI
GetCompressedFileSizeA
(
LPCSTR
lpFileName
,
LPDWORD
lpFileSizeHigh
)
{
FIXME
(
"(...): stub
\n
"
);
return
0xffffffff
;
}
/******************************************************************************
* GetCompressedFileSizeW [KERNEL32.@]
*
* RETURNS
* Success: Low-order doubleword of number of bytes
* Failure: 0xffffffff
*/
DWORD
WINAPI
GetCompressedFileSizeW
(
LPCWSTR
lpFileName
,
/* [in] Pointer to name of file */
LPDWORD
lpFileSizeHigh
)
/* [out] Receives high-order doubleword of size */
{
FIXME
(
"(%s,%p): stub
\n
"
,
debugstr_w
(
lpFileName
),
lpFileSizeHigh
);
return
0xffffffff
;
}
/******************************************************************************
* CreateIoCompletionPort (KERNEL32.@)
*/
HANDLE
WINAPI
CreateIoCompletionPort
(
HANDLE
hFileHandle
,
...
...
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