~ubuntu-wine/ubuntu/lucid/wine1.2/wine1.2+winepulse

« back to all changes in this revision

Viewing changes to dlls/shell32/tests/shelllink.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2010-02-02 11:15:03 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100202111503-w4ayji21ei1ginjr
Tags: 1.1.37-0ubuntu1
* New upstream release
  - A number of fixes in AVI file support.
  - Several MSXML improvements.
  - A few MSI fixes.
  - Various bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
        }
208
208
        if (ret)
209
209
            ok(lstrcmpi(buffer,str)==0, "GetIDList returned '%s'\n", buffer);
 
210
        pILFree(tmp_pidl);
210
211
    }
211
212
 
212
213
    pidl=path_to_pidl(mypath);
214
215
 
215
216
    if (pidl)
216
217
    {
 
218
        LPITEMIDLIST second_pidl;
 
219
 
217
220
        r = IShellLinkA_SetIDList(sl, pidl);
218
221
        ok(SUCCEEDED(r), "SetIDList failed (0x%08x)\n", r);
219
222
 
223
226
        ok(tmp_pidl && pILIsEqual(pidl, tmp_pidl),
224
227
           "GetIDList returned an incorrect pidl\n");
225
228
 
226
 
        /* tmp_pidl is owned by IShellLink so we don't free it */
 
229
        r = IShellLinkA_GetIDList(sl, &second_pidl);
 
230
        ok(SUCCEEDED(r), "GetIDList failed (0x%08x)\n", r);
 
231
        ok(second_pidl && pILIsEqual(pidl, second_pidl),
 
232
           "GetIDList returned an incorrect pidl\n");
 
233
        ok(second_pidl != tmp_pidl, "pidls are the same\n");
 
234
 
 
235
        pILFree(second_pidl);
 
236
        pILFree(tmp_pidl);
227
237
        pILFree(pidl);
228
238
 
229
239
        strcpy(buffer,"garbage");