ok(urlComponents.dwHostNameLength==strlen(TEST_URL2_SERVER),".dwHostNameLength should be %d, but is %ld\n",strlen(TEST_URL2_SERVER),urlComponents.dwHostNameLength);
ok(urlComponents.dwHostNameLength==strlen(TEST_URL2_SERVER),".dwHostNameLength should be %d, but is %ld\n",strlen(TEST_URL2_SERVER),urlComponents.dwHostNameLength);
ok(!strncmp(urlComponents.lpszHostName,TEST_URL2_SERVER,strlen(TEST_URL2_SERVER)),"lpszHostName should be %s but is %s\n",TEST_URL2_SERVER,urlComponents.lpszHostName);
ok(!strncmp(urlComponents.lpszHostName,TEST_URL2_SERVER,strlen(TEST_URL2_SERVER)),"lpszHostName should be %s but is %s\n",TEST_URL2_SERVER,urlComponents.lpszHostName);
/*3. Check for %20 */
ZeroMemory(&urlComponents,sizeof(urlComponents));
urlComponents.dwStructSize=sizeof(urlComponents);
urlComponents.lpszScheme=protocol;
urlComponents.dwSchemeLength=32;
urlComponents.lpszHostName=hostName;
urlComponents.dwHostNameLength=1024;
urlComponents.lpszUserName=userName;
urlComponents.dwUserNameLength=1024;
urlComponents.lpszPassword=password;
urlComponents.dwPasswordLength=1024;
urlComponents.lpszUrlPath=path;
urlComponents.dwUrlPathLength=2048;
urlComponents.lpszExtraInfo=extra;
ok(InternetCrackUrlA(TEST_URL3,0,ICU_DECODE,&urlComponents),"InternetCrackUrl failed with GLE 0x%lx\n",GetLastError());