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
3b721280
Commit
3b721280
authored
Nov 06, 1998
by
Bertho Stultiens
Committed by
Alexandre Julliard
Nov 06, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in write_name_str() [writeres.c] where the length byte/word was
wrongly counted in the length of the string. Thanks to Ulrich Weigand <weigand@informatik.uni-erlangen.de>
parent
f5e3b699
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
CHANGES
tools/wrc/CHANGES
+6
-0
wrc.h
tools/wrc/wrc.h
+2
-2
writeres.c
tools/wrc/writeres.c
+7
-5
No files found.
tools/wrc/CHANGES
View file @
3b721280
---------------------------------------------------------------------------
Version 1.0.3 (02-Nov-1998)
- Bugfix in write_name_str() [writeres.c] where the length byte/word was
wrongly counted in the length of the string.
Thanks to Ulrich Weigand <weigand@informatik.uni-erlangen.de>
---------------------------------------------------------------------------
Version 1.0.2 (20-Jun-1998)
- Started this file
- Fixed a bug in filename scanning when they are double quoted. The code now
...
...
tools/wrc/wrc.h
View file @
3b721280
...
...
@@ -12,8 +12,8 @@
#include "wrctypes.h"
#endif
#define WRC_VERSION "1.0.
2
"
#define WRC_RELEASEDATE "(
20-Jun
-1998)"
#define WRC_VERSION "1.0.
3
"
#define WRC_RELEASEDATE "(
02-Nov
-1998)"
#define WRC_FULLVERSION WRC_VERSION " " WRC_RELEASEDATE
/* Only used in heavy debugging sessions */
...
...
tools/wrc/writeres.c
View file @
3b721280
...
...
@@ -208,14 +208,15 @@ void write_name_str(FILE *fp, name_id_t *nid)
if
(
!
win32
&&
nid
->
name
.
s_name
->
type
==
str_char
)
{
res
.
size
=
strlen
(
nid
->
name
.
s_name
->
str
.
cstr
)
+
1
;
res
.
size
=
strlen
(
nid
->
name
.
s_name
->
str
.
cstr
);
if
(
res
.
size
>
254
)
error
(
"Can't write strings larger than 254 bytes"
);
if
(
res
.
size
==
0
)
internal_error
(
__FILE__
,
__LINE__
,
"Attempt to write empty string"
);
res
.
dataidx
=
0
;
res
.
data
=
(
char
*
)
xmalloc
(
res
.
size
);
res
.
data
=
(
char
*
)
xmalloc
(
res
.
size
+
1
);
res
.
data
[
0
]
=
(
char
)
res
.
size
;
res
.
size
++
;
/* We need to write the lenth byte as well */
strcpy
(
res
.
data
+
1
,
nid
->
name
.
s_name
->
str
.
cstr
);
write_s_res
(
fp
,
&
res
);
free
(
res
.
data
);
...
...
@@ -246,16 +247,17 @@ void write_name_str(FILE *fp, name_id_t *nid)
}
else
if
(
win32
&&
nid
->
name
.
s_name
->
type
==
str_unicode
)
{
res
.
size
=
wstrlen
(
nid
->
name
.
s_name
->
str
.
wstr
)
+
1
;
res
.
size
=
wstrlen
(
nid
->
name
.
s_name
->
str
.
wstr
);
if
(
res
.
size
>
65534
)
error
(
"Can't write strings larger than 65534 bytes"
);
if
(
res
.
size
==
0
)
internal_error
(
__FILE__
,
__LINE__
,
"Attempt to write empty string"
);
res
.
dataidx
=
0
;
res
.
data
=
(
char
*
)
xmalloc
(
res
.
size
*
2
);
((
short
*
)
res
.
data
)[
0
]
=
(
char
)
res
.
size
;
res
.
data
=
(
char
*
)
xmalloc
(
(
res
.
size
+
1
)
*
2
);
((
short
*
)
res
.
data
)[
0
]
=
(
short
)
res
.
size
;
wstrcpy
((
short
*
)(
res
.
data
+
2
),
nid
->
name
.
s_name
->
str
.
wstr
);
res
.
size
*=
2
;
/* Function writes bytes, not shorts... */
res
.
size
+=
2
;
/* We need to write the length word as well */
write_s_res
(
fp
,
&
res
);
free
(
res
.
data
);
}
...
...
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