[RAPPS] Fixes
[reactos.git] / reactos / base / applications / rapps / loaddlg.cpp
index c0415c1..8d1fdf9 100644 (file)
@@ -366,11 +366,8 @@ ThreadFunc(LPVOID Context)
 
     memset(&urlComponents, 0, sizeof(urlComponents));
     urlComponents.dwStructSize = sizeof(urlComponents);
-    
-    if (AppInfo->szUrlDownload.GetLength() > urlLength)
-        goto end;
 
-    urlLength /= sizeof(WCHAR);
+    urlLength = AppInfo->szUrlDownload.GetLength();
     urlComponents.dwSchemeLength = urlLength + 1;
     urlComponents.lpszScheme = (LPWSTR) malloc(urlComponents.dwSchemeLength * sizeof(WCHAR));
     urlComponents.dwHostNameLength = urlLength + 1;