[ros-diffs] [gvg] 20085: Put back extra info if it was present

gvg at svn.reactos.com gvg at svn.reactos.com
Sun Dec 11 22:24:30 CET 2005


Put back extra info if it was present
Modified: trunk/reactos/lib/wininet/http.c
  _____  

Modified: trunk/reactos/lib/wininet/http.c
--- trunk/reactos/lib/wininet/http.c	2005-12-11 21:22:45 UTC (rev
20084)
+++ trunk/reactos/lib/wininet/http.c	2005-12-11 21:24:27 UTC (rev
20085)
@@ -1369,6 +1369,10 @@

         if (urlComponents.nPort == INTERNET_INVALID_PORT_NUMBER)
             urlComponents.nPort = INTERNET_DEFAULT_HTTP_PORT;
 
+        if (sizeof(path) / sizeof(path[0]) <= strlenW(path) +
strlenW(extra))
+            return FALSE;
+        strcatW(path, extra);
+
 #if 0
         /*
          * This upsets redirects to binary files on sourceforge.net 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051211/117ad5d8/attachment.html


More information about the Ros-diffs mailing list