setupapi: Fix a typo [RESEND]
James Hawkins
truiken at gmail.com
Mon Sep 25 22:06:12 CDT 2006
Hi,
Is there anything wrong with this patch? Fixes bug 6264.
http://bugs.winehq.org/show_bug.cgi?id=6264
Changelog:
* Zero out len and len2 for reuse.
* Fix a typo. We should be querying field 2 of the file context.
dlls/setupapi/queue.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
--
James Hawkins
-------------- next part --------------
diff --git a/dlls/setupapi/queue.c b/dlls/setupapi/queue.c
index 7c89efd..fdcd320 100644
--- a/dlls/setupapi/queue.c
+++ b/dlls/setupapi/queue.c
@@ -327,6 +327,7 @@ static void get_src_file_info( HINF hinf
}
if (!op->src_path && !(op->style & SP_COPY_SOURCE_ABSOLUTE))
{
+ len = len2 = 0;
if (!(op->style & SP_COPY_SOURCEPATH_ABSOLUTE))
{
/* retrieve relative path for this disk */
@@ -345,7 +346,7 @@ static void get_src_file_info( HINF hinf
ptr = op->src_path + strlenW(op->src_path);
if (len2 && ptr > op->src_path && ptr[-1] != '\\') *ptr++ = '\\';
}
- if (!SetupGetStringFieldW( &disk_ctx, 4, ptr, len2, NULL )) *ptr = 0;
+ if (!SetupGetStringFieldW( &file_ctx, 2, ptr, len2, NULL )) *ptr = 0;
}
}
if (!op->src_root) op->src_root = PARSER_get_src_root(hinf);
--
1.4.2.1
More information about the wine-patches
mailing list