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

« back to all changes in this revision

Viewing changes to dlls/kernel32/tests/module.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:
359
359
    ok(GetLastError() == ERROR_FILE_NOT_FOUND ||
360
360
       broken(GetLastError() == ERROR_INVALID_HANDLE),  /* nt4 */
361
361
       "Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError());
 
362
 
 
363
    /* Free the loaded dll when its the first time this dll is loaded
 
364
       in process - First time should pass, second fail */
 
365
    SetLastError(0xdeadbeef);
 
366
    hmodule = LoadLibraryExA("comctl32.dll", NULL, LOAD_LIBRARY_AS_DATAFILE);
 
367
    ok(hmodule != 0, "Expected valid module handle\n");
 
368
 
 
369
    SetLastError(0xdeadbeef);
 
370
    ok(FreeLibrary(hmodule),
 
371
       "Expected to be able to free the module, failed with %d\n",
 
372
       GetLastError());
 
373
    SetLastError(0xdeadbeef);
 
374
    ok(!FreeLibrary(hmodule),
 
375
       "Unexpected ability to free the module, failed with %d\n",
 
376
       GetLastError());
 
377
 
 
378
    CloseHandle(hmodule);
 
379
 
362
380
}
363
381
 
364
382
START_TEST(module)