setupapi: Avoid using magic number in a comment.
Frédéric Delanoy
frederic.delanoy at gmail.com
Wed May 7 01:11:14 CDT 2014
Use the symbolic name instead of a hardcoded constant, so the comment remains valid should the
latter change.
---
dlls/setupapi/stringtable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/setupapi/stringtable.c b/dlls/setupapi/stringtable.c
index d5ff460..7f68997 100644
--- a/dlls/setupapi/stringtable.c
+++ b/dlls/setupapi/stringtable.c
@@ -60,7 +60,7 @@ struct stringentry {
Returned string table 'handle' is a pointer to 'struct stringtable' structure.
Data itself is allocated separately, pointer is stored in 'data' field.
- Data starts with array of 509 DWORDs - lookup table. Initially all offsets in that
+ Data starts with an array of BUCKET_COUNT DWORDs - lookup table. Initially all offsets in that
array are set to -1. Right after lookup table goes data itself, stored in linked lists.
Lookup table offset points to first record of 'struct stringentry' type. When more
than one record is present in a bucket, first record links to next one with 'nextoffset'
--
1.9.2
More information about the wine-patches
mailing list