ok(urlComponents.dwUrlPathLength==strlen(TEST_URL2_PATH),".dwUrlPathLength should be %d, but is %d\n",(DWORD)strlen(TEST_URL2_PATH),urlComponents.dwUrlPathLength);
ok(!strncmp(urlComponents.lpszUrlPath,TEST_URL2_PATH,strlen(TEST_URL2_PATH)),"lpszUrlPath should be %s but is %s\n",TEST_URL2_PATH,urlComponents.lpszUrlPath);
ok(urlComponents.dwHostNameLength==strlen(TEST_URL2_SERVER),".dwHostNameLength should be %d, but is %d\n",(DWORD)strlen(TEST_URL2_SERVER),urlComponents.dwHostNameLength);
/* 2. When extra info is not split out explicitly and is in url path */
zero_compsA(&urlComponents,0,1,0,0,1,0);
ok(InternetCrackUrlA(TEST_URL2,0,0,&urlComponents),"InternetCrackUrl failed with GLE 0x%x\n",GetLastError());
ok(InternetCrackUrlA(TEST_URL2,0,0,&urlComponents),"InternetCrackUrl failed with GLE %d\n",GetLastError());
ok(urlComponents.dwUrlPathLength==strlen(TEST_URL2_PATHEXTRA),".dwUrlPathLength should be %d, but is %d\n",(DWORD)strlen(TEST_URL2_PATHEXTRA),urlComponents.dwUrlPathLength);
ok(!strncmp(urlComponents.lpszUrlPath,TEST_URL2_PATHEXTRA,strlen(TEST_URL2_PATHEXTRA)),"lpszUrlPath should be %s but is %s\n",TEST_URL2_PATHEXTRA,urlComponents.lpszUrlPath);
ok(urlComponents.dwHostNameLength==strlen(TEST_URL2_SERVER),".dwHostNameLength should be %d, but is %d\n",(DWORD)strlen(TEST_URL2_SERVER),urlComponents.dwHostNameLength);
ok(urlComponents.nScheme==INTERNET_SCHEME_HTTP,"urlComponents->nScheme should have been INTERNET_SCHEME_HTTP instead of %d\n",urlComponents.nScheme);
zero_compsA(&urlComponents,1,1,1,1,1,1);
ok(InternetCrackUrlA(TEST_URL,strlen(TEST_URL),0,&urlComponents),"InternetCrackUrl failed with GLE 0x%x\n",GetLastError());
ok(InternetCrackUrlA(TEST_URL,strlen(TEST_URL),0,&urlComponents),"InternetCrackUrl failed with GLE %d\n",GetLastError());
ok(urlComponents.dwUrlPathLength==strlen(TEST_URL_PATH),".dwUrlPathLength should be %d, but is %d\n",lstrlenA(TEST_URL_PATH),urlComponents.dwUrlPathLength);
ok(!strncmp(urlComponents.lpszUrlPath,TEST_URL_PATH,strlen(TEST_URL_PATH)),"lpszUrlPath should be %s but is %s\n",TEST_URL_PATH,urlComponents.lpszUrlPath);
ok(urlComponents.dwHostNameLength==strlen(TEST_URL_HOST),".dwHostNameLength should be %d, but is %d\n",lstrlenA(TEST_URL_HOST),urlComponents.dwHostNameLength);