James Hawkins : setupapi: Fix a typo.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Sep 26 15:04:46 CDT 2006


Module: wine
Branch: master
Commit: 5dadca4dbca70cd98db68f1fb2d5fa0c8348a636
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=5dadca4dbca70cd98db68f1fb2d5fa0c8348a636

Author: James Hawkins <truiken at gmail.com>
Date:   Fri Sep 22 16:52:07 2006 -0700

setupapi: Fix a typo.

---

 dlls/setupapi/queue.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

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);




More information about the wine-cvs mailing list