wine
19 years agoStore the pixmap depth and the DIBSECTION pointer in the phys bitmap
Alexandre Julliard [Mon, 11 Apr 2005 18:54:30 +0000 (18:54 +0000)] 
Store the pixmap depth and the DIBSECTION pointer in the phys bitmap
structure. Avoid a few GDI_GetObjPtr calls.

19 years agoAdd new powrprof.h header.
Alexandre Julliard [Mon, 11 Apr 2005 18:51:17 +0000 (18:51 +0000)] 
Add new powrprof.h header.

19 years agoReturn an error instead of crashing later on a divide by zero
Robert Shearman [Mon, 11 Apr 2005 18:50:58 +0000 (18:50 +0000)] 
Return an error instead of crashing later on a divide by zero
exception when an alignment of 0 is specified.

19 years ago- add write support to IPropertyStorage, with tests
Juan Lang [Mon, 11 Apr 2005 18:50:45 +0000 (18:50 +0000)] 
- add write support to IPropertyStorage, with tests
- misc. cleanups the tests turned up

19 years agoAdd some missing SFGAO_ defines and fix SFGAO_GHOSTED.
Huw Davies [Mon, 11 Apr 2005 18:50:15 +0000 (18:50 +0000)] 
Add some missing SFGAO_ defines and fix SFGAO_GHOSTED.

19 years agoDirectory items should have the SFGOA_FILESYSANCESTOR attribute.
Huw Davies [Mon, 11 Apr 2005 18:50:01 +0000 (18:50 +0000)] 
Directory items should have the SFGOA_FILESYSANCESTOR attribute.
Add a test for this and cleanup the shlfolder test a bit.

19 years agoDon't reference c:\windows directly.
Vincent Béron [Mon, 11 Apr 2005 18:49:40 +0000 (18:49 +0000)] 
Don't reference c:\windows directly.

19 years agoRegister control\class\{GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR}.
Juan Lang [Mon, 11 Apr 2005 18:49:28 +0000 (18:49 +0000)] 
Register control\class\{GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR}.

19 years agoAdded function/enum/structs for power management API.
Benjamin Cutler [Mon, 11 Apr 2005 18:49:10 +0000 (18:49 +0000)] 
Added function/enum/structs for power management API.

19 years agoStub implementation od IPersist, IPersistMoniker, IPersistFile,
Jacek Caban [Mon, 11 Apr 2005 16:11:52 +0000 (16:11 +0000)] 
Stub implementation od IPersist, IPersistMoniker, IPersistFile,
IMonikerProp.

19 years agoCalculate the size of the next mailslot message correctly.
Mike McCormack [Mon, 11 Apr 2005 16:11:32 +0000 (16:11 +0000)] 
Calculate the size of the next mailslot message correctly.

19 years agoEnsure A->W version of InternetCrackURL passes correct length values,
Jason Edmeades [Mon, 11 Apr 2005 16:10:50 +0000 (16:10 +0000)] 
Ensure A->W version of InternetCrackURL passes correct length values,
and associated tests.

19 years agoAvoid using ver.h in favor of winver.h.
Steven Edwards [Mon, 11 Apr 2005 16:10:33 +0000 (16:10 +0000)] 
Avoid using ver.h in favor of winver.h.

19 years agoUse the same maximum length for tags given on the command line and
Ferenc Wagner [Mon, 11 Apr 2005 16:10:01 +0000 (16:10 +0000)] 
Use the same maximum length for tags given on the command line and
tags entered in the GUI.

19 years agoAdd traces, add unit tests for IPropertyStorage, and fix the problems
Juan Lang [Mon, 11 Apr 2005 14:30:24 +0000 (14:30 +0000)] 
Add traces, add unit tests for IPropertyStorage, and fix the problems
they caught.

19 years ago- set size required correctly for all supported options
Juan Lang [Mon, 11 Apr 2005 14:26:18 +0000 (14:26 +0000)] 
- set size required correctly for all supported options
- tidy up a few lines of indenting in INET_QueryOptionHelper
- implement querying INTERNET_OPTION_PROXY

19 years agoCorrectly lock and unlock surface for a single-surface Blt() and
Matthew Mastracci [Mon, 11 Apr 2005 14:26:00 +0000 (14:26 +0000)] 
Correctly lock and unlock surface for a single-surface Blt() and
BltFast() call.

19 years agoImplement GetNamedSecurityInfo.
Hans Leidekker [Mon, 11 Apr 2005 14:25:41 +0000 (14:25 +0000)] 
Implement GetNamedSecurityInfo.

19 years agoFix X11DRV_DIB_SetImageBits_RLE(4|8) when an non-zero x-offset
Rein Klazes [Mon, 11 Apr 2005 14:25:26 +0000 (14:25 +0000)] 
Fix X11DRV_DIB_SetImageBits_RLE(4|8) when an non-zero x-offset
(argument left) is specified.

19 years agoSync to the latest opengl specs.
Tom Wickline [Mon, 11 Apr 2005 14:24:27 +0000 (14:24 +0000)] 
Sync to the latest opengl specs.

19 years agoAdded mousewheel support.
Hannu Valtonen [Mon, 11 Apr 2005 14:22:21 +0000 (14:22 +0000)] 
Added mousewheel support.

19 years agoFlags should be or-ed.
Paul Vriens [Mon, 11 Apr 2005 14:21:33 +0000 (14:21 +0000)] 
Flags should be or-ed.

19 years agoTab unicodification.
Dimitrie O. Paun [Mon, 11 Apr 2005 14:21:15 +0000 (14:21 +0000)] 
Tab unicodification.

19 years agoMonthCal unicodification.
Dimitrie O. Paun [Mon, 11 Apr 2005 14:21:00 +0000 (14:21 +0000)] 
MonthCal unicodification.

19 years agoMove mailslot set and query info implementation to ntdll.
Mike McCormack [Mon, 11 Apr 2005 14:20:49 +0000 (14:20 +0000)] 
Move mailslot set and query info implementation to ntdll.

19 years agoFix the icon resource ids (most were off by one).
Huw Davies [Mon, 11 Apr 2005 13:04:41 +0000 (13:04 +0000)] 
Fix the icon resource ids (most were off by one).
Fix IExtractIcon_{GetIconLocation,Extract} to use -ve icon resource
ids and fix bugs relating to confusion between resource ids and the
system imagelist indicies.
Extend the system imagelist initialization hack to load both +ve and
-ve resource ids.
Add a printer icon (that'll be used by an upcoming printer folder
patch).

19 years agoSpanish translations updated.
José Manuel Ferrer Ortiz [Mon, 11 Apr 2005 13:01:46 +0000 (13:01 +0000)] 
Spanish translations updated.

19 years agoAdded missing OleDraw() declaration.
Michael Lin [Mon, 11 Apr 2005 13:00:41 +0000 (13:00 +0000)] 
Added missing OleDraw() declaration.

19 years agoMake static some functions used only in a single file.
Vincent Béron [Mon, 11 Apr 2005 13:00:28 +0000 (13:00 +0000)] 
Make static some functions used only in a single file.

19 years agoInitialize primary buffer on open.
Robert Reif [Mon, 11 Apr 2005 13:00:00 +0000 (13:00 +0000)] 
Initialize primary buffer on open.

19 years agoImplement SetupDiClassNameFromGuidExA.
Juan Lang [Mon, 11 Apr 2005 12:59:45 +0000 (12:59 +0000)] 
Implement SetupDiClassNameFromGuidExA.

19 years agoAdd a few missing declarations.
Juan Lang [Mon, 11 Apr 2005 12:59:25 +0000 (12:59 +0000)] 
Add a few missing declarations.

19 years agoRemoved inclusion of process.h (not needed and breaks with gcc4).
Marcus Meissner [Mon, 11 Apr 2005 12:59:17 +0000 (12:59 +0000)] 
Removed inclusion of process.h (not needed and breaks with gcc4).

19 years agoAdd stub for FaultInIEFeature.
Mike McCormack [Mon, 11 Apr 2005 12:58:58 +0000 (12:58 +0000)] 
Add stub for FaultInIEFeature.

19 years agoAdd uCLSSPEC, CSPLATFORM and QUERYCONTEXT structures.
Mike McCormack [Mon, 11 Apr 2005 12:58:44 +0000 (12:58 +0000)] 
Add uCLSSPEC, CSPLATFORM and QUERYCONTEXT structures.

19 years agoAudit the code against Comctl32.dll version 6.0.
Dimitrie O. Paun [Mon, 11 Apr 2005 12:58:30 +0000 (12:58 +0000)] 
Audit the code against Comctl32.dll version 6.0.
Handle notification and styles as in the other controls.
Maintain the const for strings throughout parsing.

19 years agoRemove reference to nonexistant strmif.h.
Dimitrie O. Paun [Mon, 11 Apr 2005 12:58:13 +0000 (12:58 +0000)] 
Remove reference to nonexistant strmif.h.

19 years agoClear systemtime struct so we don't return garbage in uninitialized
Ulrich Czekalla [Mon, 11 Apr 2005 12:57:57 +0000 (12:57 +0000)] 
Clear systemtime struct so we don't return garbage in uninitialized
fields.

19 years agoFix a typo in uninstaller's english appname.
Hannu Valtonen [Mon, 11 Apr 2005 12:57:32 +0000 (12:57 +0000)] 
Fix a typo in uninstaller's english appname.

19 years agoRun msi files with msiexec.
Hannu Valtonen [Mon, 11 Apr 2005 12:57:26 +0000 (12:57 +0000)] 
Run msi files with msiexec.
Change Control Panel\Desktop to correct case.

19 years agoFix array index crash in buidling GDI palette from logical palette.
Glenn Wurster [Mon, 11 Apr 2005 12:57:10 +0000 (12:57 +0000)] 
Fix array index crash in buidling GDI palette from logical palette.

19 years agoMake crypt functions more robust in case of incorrect api usage.
Michael Jung [Mon, 11 Apr 2005 12:55:36 +0000 (12:55 +0000)] 
Make crypt functions more robust in case of incorrect api usage.

19 years agoFix potential region leak.
Raphael Junqueira [Mon, 11 Apr 2005 12:54:53 +0000 (12:54 +0000)] 
Fix potential region leak.

19 years agoCreate the 'Test' value in a temporary subkey to avoid conflicts
James Hawkins [Mon, 11 Apr 2005 12:52:32 +0000 (12:52 +0000)] 
Create the 'Test' value in a temporary subkey to avoid conflicts
between tests.

19 years agoAdded cryptdll/ and stdole32.tlb/.
Dimitrie O. Paun [Mon, 11 Apr 2005 12:52:20 +0000 (12:52 +0000)] 
Added cryptdll/ and stdole32.tlb/.

19 years agoRemove nonstandard type LPLPVOID.
James Hawkins [Mon, 11 Apr 2005 12:52:00 +0000 (12:52 +0000)] 
Remove nonstandard type LPLPVOID.

19 years agoMore notes about the inner workings of DCOM.
Mike Hearn [Mon, 11 Apr 2005 12:51:36 +0000 (12:51 +0000)] 
More notes about the inner workings of DCOM.

19 years agoCreate the GL texture id at texture-binding time.
Lionel Ulmer [Mon, 11 Apr 2005 12:51:22 +0000 (12:51 +0000)] 
Create the GL texture id at texture-binding time.

19 years ago- EM_CANPASTE implemented
Krzysztof Foltman [Mon, 11 Apr 2005 12:50:48 +0000 (12:50 +0000)] 
- EM_CANPASTE implemented
- updated TODO list (including list of (un)implemented messages)
- fixed WM_PASTE (the previous version might not close the clipboard
  if it didn't contain a usable format)
- scrollbar operations (like clicking on arrows) should update
  scrollbar's current position

19 years agoFix a typo in a comment.
Vincent Béron [Mon, 11 Apr 2005 12:50:19 +0000 (12:50 +0000)] 
Fix a typo in a comment.

19 years agoCleanup the API docs. Few indentation/formatting fixes.
Dimitrie O. Paun [Mon, 11 Apr 2005 12:50:01 +0000 (12:50 +0000)] 
Cleanup the API docs. Few indentation/formatting fixes.

19 years agoChanged regression test to make sure position is correctly checked
Robert Reif [Mon, 11 Apr 2005 12:49:22 +0000 (12:49 +0000)] 
Changed regression test to make sure position is correctly checked
when a different type is returned.
Added Jeremy White's WAVE_FORMAT_DIRECT/WAVE_MAPPER fix.
Added waveInGetPosition checks.

19 years agoCorrectly handle where waveOutGetPosition changes timepos.wType
Robert Reif [Mon, 11 Apr 2005 12:49:04 +0000 (12:49 +0000)] 
Correctly handle where waveOutGetPosition changes timepos.wType
because the requested type is not supported.
Added Jeremy White's waveOutGetPosition fix to waveInGetPosition.

19 years agoOnly do unicode conversion in HTML Help control when filename is
Mike Hearn [Mon, 11 Apr 2005 12:47:40 +0000 (12:47 +0000)] 
Only do unicode conversion in HTML Help control when filename is
specified.

19 years agoLoad and display bitmaps in the dialogs.
Mike McCormack [Mon, 11 Apr 2005 12:47:20 +0000 (12:47 +0000)] 
Load and display bitmaps in the dialogs.

19 years agoIn ScrollWindowEx, if the window already has an update region then add
Rein Klazes [Mon, 11 Apr 2005 12:47:01 +0000 (12:47 +0000)] 
In ScrollWindowEx, if the window already has an update region then add
this to hrgnUpdate. With a conformance test.

19 years agoSilence some signedness warnings.
Ferenc Wagner [Mon, 11 Apr 2005 12:46:28 +0000 (12:46 +0000)] 
Silence some signedness warnings.

19 years agoIntroduced an X_PHYSBITMAP structure to allow storing more x11drv
Alexandre Julliard [Thu, 31 Mar 2005 19:13:03 +0000 (19:13 +0000)] 
Introduced an X_PHYSBITMAP structure to allow storing more x11drv
information about a bitmap than just the pixmap id.

19 years agoFix some incorrect uses of the ok macro where the result depends on
Rein Klazes [Thu, 31 Mar 2005 19:07:08 +0000 (19:07 +0000)] 
Fix some incorrect uses of the ok macro where the result depends on
the evaluation order of its arguments.

19 years agoImplement and test _chsize.
Hans Leidekker [Thu, 31 Mar 2005 19:06:10 +0000 (19:06 +0000)] 
Implement and test _chsize.

19 years agoAvoid directly accessing the BITMAPOBJ structure.
Alexandre Julliard [Thu, 31 Mar 2005 19:05:48 +0000 (19:05 +0000)] 
Avoid directly accessing the BITMAPOBJ structure.

19 years agoRemoved the no longer needed X11DRV_get_client_area_offset function.
Alexandre Julliard [Thu, 31 Mar 2005 15:44:20 +0000 (15:44 +0000)] 
Removed the no longer needed X11DRV_get_client_area_offset function.

19 years agoReturn the coordinates information needed to setup the DC parameters
Alexandre Julliard [Thu, 31 Mar 2005 15:36:57 +0000 (15:36 +0000)] 
Return the coordinates information needed to setup the DC parameters
in the get_visible_region request instead of requiring the client to
compute it again.

19 years agoIf ScrollWindowEx do not use the DCX_USESTYLE to get a DC. Instead
Rein Klazes [Thu, 31 Mar 2005 15:30:25 +0000 (15:30 +0000)] 
If ScrollWindowEx do not use the DCX_USESTYLE to get a DC. Instead
calculate DCX_CLIPSIBLINGS, DCX_PARENTCLIP and DCX_CLIPCHILDREN. The
DCX_CLIPCHILDREN is not used when ScrollWindowEx is called with a
SW_SCROLLCHILDREN flag. With a couple of regression tests.

19 years agoFix a copy&paste bug in get_buffer_pe.
Rein Klazes [Thu, 31 Mar 2005 15:28:54 +0000 (15:28 +0000)] 
Fix a copy&paste bug in get_buffer_pe.

19 years agoEliminate forward declarations, make functions static.
Mike McCormack [Thu, 31 Mar 2005 15:26:30 +0000 (15:26 +0000)] 
Eliminate forward declarations, make functions static.

19 years agoAsk for a tag if one was not given on the command line.
Ferenc Wagner [Thu, 31 Mar 2005 15:22:41 +0000 (15:22 +0000)] 
Ask for a tag if one was not given on the command line.

19 years agoAdded support for the DC meta region.
Alexandre Julliard [Thu, 31 Mar 2005 10:19:40 +0000 (10:19 +0000)] 
Added support for the DC meta region.

19 years agoStub implementation of HTMLDocument2 interface.
Jacek Caban [Thu, 31 Mar 2005 10:08:02 +0000 (10:08 +0000)] 
Stub implementation of HTMLDocument2 interface.

19 years agoUse textlen instead of len.
Paul Vriens [Thu, 31 Mar 2005 10:07:26 +0000 (10:07 +0000)] 
Use textlen instead of len.
Use textheight as the return value of DrawTextA.

19 years agoFix GetFileSecurityA test on Win98.
Stefan Leichter [Thu, 31 Mar 2005 10:07:11 +0000 (10:07 +0000)] 
Fix GetFileSecurityA test on Win98.

19 years agoDon't stop looking for devices if one can't be opened.
Paul van Schayck [Thu, 31 Mar 2005 10:07:02 +0000 (10:07 +0000)] 
Don't stop looking for devices if one can't be opened.

19 years agoSet the registry keys under HCU\Software\Microsoft\Windows
Huw Davies [Thu, 31 Mar 2005 10:06:46 +0000 (10:06 +0000)] 
Set the registry keys under HCU\Software\Microsoft\Windows
NT\CurrentVersion to mimic the win.ini values.

19 years agoFix up PIDL dumping code.
Mike McCormack [Thu, 31 Mar 2005 10:05:59 +0000 (10:05 +0000)] 
Fix up PIDL dumping code.

19 years agoJapanese 106 Keyboard fix.
Aric Cyr [Thu, 31 Mar 2005 10:05:48 +0000 (10:05 +0000)] 
Japanese 106 Keyboard fix.

19 years agoImplement mailslots.
Mike McCormack [Wed, 30 Mar 2005 19:02:15 +0000 (19:02 +0000)] 
Implement mailslots.

19 years ago- Make GetSystemMenu respect CS_NOCLOSE.
Dmitry Timoshkov [Wed, 30 Mar 2005 18:59:27 +0000 (18:59 +0000)] 
- Make GetSystemMenu respect CS_NOCLOSE.
- EnableMenuItem should not generate WM_WINDOWPOSCHANGING message.
- Make nonclient code check for presence of SC_CLOSE, not CS_NOCLOSE
  window class style.
- Add a test case.

19 years agoRemoved the incomplete signature checking code.
Michael Jung [Wed, 30 Mar 2005 18:56:41 +0000 (18:56 +0000)] 
Removed the incomplete signature checking code.

19 years agoThe update region passed in WM_NCPAINT and the clipping region passed
Alexandre Julliard [Wed, 30 Mar 2005 17:11:46 +0000 (17:11 +0000)] 
The update region passed in WM_NCPAINT and the clipping region passed
to GetDCEx have to be in screen coordinates.

19 years agoAssorted spelling fixes.
Francois Gouget [Wed, 30 Mar 2005 17:08:31 +0000 (17:08 +0000)] 
Assorted spelling fixes.

19 years agoAdded IMonikerProp and IInternetPriority interfaces.
Jacek Caban [Wed, 30 Mar 2005 17:05:22 +0000 (17:05 +0000)] 
Added IMonikerProp and IInternetPriority interfaces.

19 years agoAdded some definitions.
Jacek Caban [Wed, 30 Mar 2005 17:05:12 +0000 (17:05 +0000)] 
Added some definitions.

19 years agoReturn a computername constructed from the hostname.
Hans Leidekker [Wed, 30 Mar 2005 17:04:55 +0000 (17:04 +0000)] 
Return a computername constructed from the hostname.

19 years agoBetter handling of 16-bit native dlls when a 32-bit builtin with the
Alexandre Julliard [Wed, 30 Mar 2005 10:31:33 +0000 (10:31 +0000)] 
Better handling of 16-bit native dlls when a 32-bit builtin with the
same name exists; should help with the 16-bit cards.dll issue.
Replace some magic error numbers by the corresponding names.

19 years agoOnly reset the clip region in GetDC() if a new region is specified.
Alexandre Julliard [Wed, 30 Mar 2005 10:28:58 +0000 (10:28 +0000)] 
Only reset the clip region in GetDC() if a new region is specified.
Don't release the clip region for window DCs in ReleaseDC(), except
when called from EndPaint().
Added a bunch of tests.

19 years agoZero out return string in GetMenuStringA/W.
Uwe Bonnes [Wed, 30 Mar 2005 10:24:07 +0000 (10:24 +0000)] 
Zero out return string in GetMenuStringA/W.

19 years agoStub implementation of RtlAbsoluteToSelfRelativeSD.
Mike McCormack [Wed, 30 Mar 2005 10:22:51 +0000 (10:22 +0000)] 
Stub implementation of RtlAbsoluteToSelfRelativeSD.

19 years agoKeep dsound8.c and dsound.c in sync.
Robert Reif [Wed, 30 Mar 2005 10:21:44 +0000 (10:21 +0000)] 
Keep dsound8.c and dsound.c in sync.

19 years agoInitialize [orig|himetric][Width|Height] for PICTYPE_ICON case.
Alex Villacís Lasso [Wed, 30 Mar 2005 10:21:30 +0000 (10:21 +0000)] 
Initialize [orig|himetric][Width|Height] for PICTYPE_ICON case.

19 years agoMove save_registry and unload_key server calls to ntdll.
Robert Shearman [Wed, 30 Mar 2005 10:21:15 +0000 (10:21 +0000)] 
Move save_registry and unload_key server calls to ntdll.

19 years agoMake sure the GUID of the typelib we are registering matches the guid
Aric Stewart [Wed, 30 Mar 2005 10:19:08 +0000 (10:19 +0000)] 
Make sure the GUID of the typelib we are registering matches the guid
requested from MSI. If not search the given typelib file to find the
typelib requested to register.

19 years agoTry using a stable temporary directory at first to silence ZoneAlarm
Ferenc Wagner [Tue, 29 Mar 2005 19:51:49 +0000 (19:51 +0000)] 
Try using a stable temporary directory at first to silence ZoneAlarm
warnings.

19 years agoImplement ChangeServiceConfig.
Mike McCormack [Tue, 29 Mar 2005 19:51:40 +0000 (19:51 +0000)] 
Implement ChangeServiceConfig.

19 years agoJanitorial: Get rid of strncpy/strncpyW.
Peter Berg Larsen [Tue, 29 Mar 2005 19:49:21 +0000 (19:49 +0000)] 
Janitorial: Get rid of strncpy/strncpyW.

19 years agoImprove winealsa dsound driver by accessing sound driver's buffer
Jerry Jenkins [Tue, 29 Mar 2005 19:48:07 +0000 (19:48 +0000)] 
Improve winealsa dsound driver by accessing sound driver's buffer
directly in an undocumented way.

19 years ago- Volume now inherits Resource. This isn't the way Microsoft implements
Oliver Stieber [Tue, 29 Mar 2005 19:01:00 +0000 (19:01 +0000)] 
- Volume now inherits Resource. This isn't the way Microsoft implements
  the interface but it is more correct way (Microsoft even have a
  resource type of volume).
- Moved usage, format, allocatedMemory and size onto the resource
  class structure.
- Refactored Preload for classes that inherit BaseTexture, preload now
  binds the texture instead of bind texture calling preload, bindTexture
  allocated a glTexture if there isn't one.
- Added two new class static members BaseTexture_CleanUp and
  Resource_CleanUp that should be called by classes that implement
  BaseTexture or Resource.

19 years agoOnly restore the DC attributes on the next GetDC, and add support for
Alexandre Julliard [Tue, 29 Mar 2005 18:59:02 +0000 (18:59 +0000)] 
Only restore the DC attributes on the next GetDC, and add support for
the DCX_NORESETATTRS flag.
Get rid of the DCE flags, simplify the code a bit.
Add some test cases.

19 years agoFix failure to notice the use of a GIF palette index greater or equal
Alex Villacís Lasso [Tue, 29 Mar 2005 18:57:15 +0000 (18:57 +0000)] 
Fix failure to notice the use of a GIF palette index greater or equal
to 128 for transparency.

19 years agoAdded ES_AUTOHSCROLL style to the edittext changing text data.
Jacek Caban [Tue, 29 Mar 2005 18:56:54 +0000 (18:56 +0000)] 
Added ES_AUTOHSCROLL style to the edittext changing text data.

19 years agoIn a call to EnumEnhMetaFile when hdc is NULL, lpRect may be NULL. Add
Huw Davies [Tue, 29 Mar 2005 18:56:35 +0000 (18:56 +0000)] 
In a call to EnumEnhMetaFile when hdc is NULL, lpRect may be NULL. Add
a test for this.