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
566a52ad
Commit
566a52ad
authored
Mar 05, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed isolated for loops to while loops (based on a patch by Andreas
Mohr).
parent
b6474aeb
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
13 deletions
+19
-13
mmio.c
dlls/winmm/mmio.c
+4
-1
dos_fs.c
files/dos_fs.c
+4
-2
drive.c
files/drive.c
+1
-1
xfont.c
graphics/x11drv/xfont.c
+2
-4
hlpfile.c
programs/winhelp/hlpfile.c
+2
-1
debugger.c
server/debugger.c
+2
-1
registry.c
server/registry.c
+2
-1
misc.c
tools/specmaker/misc.c
+2
-2
No files found.
dlls/winmm/mmio.c
View file @
566a52ad
...
...
@@ -591,7 +591,10 @@ static BOOL MMIO_Destroy(LPWINE_MMIO wm)
LPWINE_MMIO
*
m
;
EnterCriticalSection
(
&
iData
->
cs
);
for
(
m
=
&
(
iData
->
lpMMIO
);
*
m
&&
*
m
!=
wm
;
m
=
&
(
*
m
)
->
lpNext
);
/* search for the matching one... */
m
=
&
(
iData
->
lpMMIO
);
while
(
*
m
&&
*
m
!=
wm
)
m
=
&
(
*
m
)
->
lpNext
;
/* ...and destroy */
if
(
*
m
)
{
*
m
=
(
*
m
)
->
lpNext
;
HeapFree
(
GetProcessHeap
(),
0
,
wm
);
...
...
files/dos_fs.c
View file @
566a52ad
...
...
@@ -261,10 +261,12 @@ static void DOSFS_ToDosDTAFormat( LPCSTR name, LPSTR buffer )
char
*
p
;
memcpy
(
buffer
,
name
,
8
);
for
(
p
=
buffer
+
8
;
(
p
>
buffer
)
&&
(
p
[
-
1
]
==
' '
);
p
--
);
p
=
buffer
+
8
;
while
((
p
>
buffer
)
&&
(
p
[
-
1
]
==
' '
))
p
--
;
*
p
++
=
'.'
;
memcpy
(
p
,
name
+
8
,
3
);
for
(
p
+=
3
;
p
[
-
1
]
==
' '
;
p
--
);
p
+=
3
;
while
(
p
[
-
1
]
==
' '
)
p
--
;
if
(
p
[
-
1
]
==
'.'
)
p
--
;
*
p
=
'\0'
;
}
...
...
files/drive.c
View file @
566a52ad
...
...
@@ -1422,7 +1422,7 @@ BOOL WINAPI GetVolumeInformationA( LPCSTR root, LPSTR label,
if
(
label
)
{
lstrcpynA
(
label
,
DRIVE_GetLabel
(
drive
),
label_len
);
for
(
cp
=
label
;
*
cp
;
cp
++
);
cp
=
label
+
strlen
(
label
);
while
(
cp
!=
label
&&
*
(
cp
-
1
)
==
' '
)
cp
--
;
*
cp
=
'\0'
;
}
...
...
graphics/x11drv/xfont.c
View file @
566a52ad
...
...
@@ -957,11 +957,9 @@ static BOOL LFD_ComposeLFD( const fontObject* fo,
if
(
uRelax
<=
4
)
{
fontEncodingTemplate
*
boba
;
i
=
fo
->
fi
->
fi_encoding
>>
8
;
for
(
boba
=
fETTable
;
i
;
i
--
,
boba
=
boba
->
next
);
fontEncodingTemplate
*
boba
=
fETTable
;
for
(
i
=
fo
->
fi
->
fi_encoding
>>
8
;
i
;
i
--
)
boba
=
boba
->
next
;
aLFD
.
charset_registry
=
boba
->
prefix
?
boba
->
prefix
:
any
;
i
=
fo
->
fi
->
fi_encoding
&
255
;
...
...
programs/winhelp/hlpfile.c
View file @
566a52ad
...
...
@@ -649,7 +649,8 @@ static VOID HLPFILE_SystemCommands(HLPFILE* hlpfile)
lstrcpy
(
p
,
(
LPSTR
)
ptr
+
4
);
macro
->
lpszMacro
=
p
;
macro
->
next
=
0
;
for
(
m
=
&
hlpfile
->
first_macro
;
*
m
;
m
=
&
(
*
m
)
->
next
);
m
=
&
hlpfile
->
first_macro
;
while
(
*
m
)
m
=
&
(
*
m
)
->
next
;
*
m
=
macro
;
break
;
...
...
server/debugger.c
View file @
566a52ad
...
...
@@ -443,7 +443,8 @@ void generate_startup_debug_events( struct process *process, void *entry )
generate_debug_event
(
thread
,
CREATE_THREAD_DEBUG_EVENT
,
NULL
);
/* generate dll events (in loading order, i.e. reverse list order) */
for
(
dll
=
&
process
->
exe
;
dll
->
next
;
dll
=
dll
->
next
);
dll
=
&
process
->
exe
;
while
(
dll
->
next
)
dll
=
dll
->
next
;
while
(
dll
!=
&
process
->
exe
)
{
generate_debug_event
(
process
->
thread_list
,
LOAD_DLL_DEBUG_EVENT
,
dll
);
...
...
server/registry.c
View file @
566a52ad
...
...
@@ -1305,7 +1305,8 @@ static void load_keys( struct key *key, FILE *f )
while
(
read_next_line
(
&
info
)
==
1
)
{
for
(
p
=
info
.
buffer
;
*
p
&&
isspace
(
*
p
);
p
++
);
p
=
info
.
buffer
;
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
switch
(
*
p
)
{
case
'['
:
/* new key */
...
...
tools/specmaker/misc.c
View file @
566a52ad
...
...
@@ -120,12 +120,12 @@ const char *str_match (const char *str, const char *match, int *found)
{
assert
(
str
&&
match
&&
found
);
for
(;
*
str
==
' '
;
str
++
)
;
while
(
*
str
==
' '
)
str
++
;
if
(
!
strncmp
(
str
,
match
,
strlen
(
match
)))
{
*
found
=
1
;
str
+=
strlen
(
match
);
for
(;
*
str
==
' '
;
str
++
)
;
while
(
*
str
==
' '
)
str
++
;
}
else
*
found
=
0
;
...
...
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