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
67bf5c71
Commit
67bf5c71
authored
Jun 21, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
007997c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
Makefile.in
dlls/storage.dll16/Makefile.in
+1
-1
storage.c
dlls/storage.dll16/storage.c
+4
-10
No files found.
dlls/storage.dll16/Makefile.in
View file @
67bf5c71
MODULE
=
storage.dll16
IMPORTS
=
uuid ole32
EXTRADLLFLAGS
=
-m16
-Wb
,--main-module,ole32.dll
EXTRADLLFLAGS
=
-m16
-
mno-cygwin
-
Wb
,--main-module,ole32.dll
C_SRCS
=
storage.c
dlls/storage.dll16/storage.c
View file @
67bf5c71
...
...
@@ -21,16 +21,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <assert.h>
#include <time.h>
#include <stdarg.h>
#include <string.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#define NONAMELESSUNION
...
...
@@ -40,7 +35,6 @@
#include "winerror.h"
#include "wine/winbase16.h"
#include "wownt32.h"
#include "wine/unicode.h"
#include "objbase.h"
#include "wine/debug.h"
...
...
@@ -687,7 +681,7 @@ STORAGE_look_for_named_pps(stream_access16*str,int n,LPOLESTR name) {
if
(
1
!=
STORAGE_get_pps_entry
(
str
,
n
,
&
stde
))
return
-
1
;
if
(
!
lstrcmpW
(
name
,
stde
.
pps_rawname
))
if
(
!
wcscmp
(
name
,
stde
.
pps_rawname
))
return
n
;
if
(
stde
.
pps_prev
!=
-
1
)
{
ret
=
STORAGE_look_for_named_pps
(
str
,
stde
.
pps_prev
,
name
);
...
...
@@ -778,7 +772,7 @@ STORAGE_init_storage(stream_access16 *str) {
stde
=
(
struct
storage_pps_entry
*
)
block
;
MultiByteToWideChar
(
CP_ACP
,
0
,
"RootEntry"
,
-
1
,
stde
->
pps_rawname
,
ARRAY_SIZE
(
stde
->
pps_rawname
));
stde
->
pps_sizeofname
=
(
strlenW
(
stde
->
pps_rawname
)
+
1
)
*
sizeof
(
WCHAR
);
stde
->
pps_sizeofname
=
(
l
strlenW
(
stde
->
pps_rawname
)
+
1
)
*
sizeof
(
WCHAR
);
stde
->
pps_type
=
5
;
stde
->
pps_dir
=
-
1
;
stde
->
pps_next
=
-
1
;
...
...
@@ -1752,7 +1746,7 @@ HRESULT CDECL IStorage16_fnCreateStorage(IStorage16 *iface, LPCOLESTR16 pwcsName
assert
(
nPPSEntries
==
1
);
MultiByteToWideChar
(
CP_ACP
,
0
,
pwcsName
,
-
1
,
lpstg
->
stde
.
pps_rawname
,
ARRAY_SIZE
(
lpstg
->
stde
.
pps_rawname
));
lpstg
->
stde
.
pps_sizeofname
=
(
strlenW
(
lpstg
->
stde
.
pps_rawname
)
+
1
)
*
sizeof
(
WCHAR
);
lpstg
->
stde
.
pps_sizeofname
=
(
l
strlenW
(
lpstg
->
stde
.
pps_rawname
)
+
1
)
*
sizeof
(
WCHAR
);
lpstg
->
stde
.
pps_next
=
-
1
;
lpstg
->
stde
.
pps_prev
=
-
1
;
lpstg
->
stde
.
pps_dir
=
-
1
;
...
...
@@ -1815,7 +1809,7 @@ HRESULT CDECL IStorage16_fnCreateStream(IStorage16 *iface, LPCOLESTR16 pwcsName,
assert
(
nPPSEntries
==
1
);
MultiByteToWideChar
(
CP_ACP
,
0
,
pwcsName
,
-
1
,
lpstr
->
stde
.
pps_rawname
,
ARRAY_SIZE
(
lpstr
->
stde
.
pps_rawname
));
lpstr
->
stde
.
pps_sizeofname
=
(
strlenW
(
lpstr
->
stde
.
pps_rawname
)
+
1
)
*
sizeof
(
WCHAR
);
lpstr
->
stde
.
pps_sizeofname
=
(
l
strlenW
(
lpstr
->
stde
.
pps_rawname
)
+
1
)
*
sizeof
(
WCHAR
);
lpstr
->
stde
.
pps_next
=
-
1
;
lpstr
->
stde
.
pps_prev
=
-
1
;
lpstr
->
stde
.
pps_dir
=
-
1
;
...
...
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