http://bugs.winehq.org/show_bug.cgi?id=19862
--- Comment #2 from Henri Verbeet hverbeet@gmail.com 2009-08-28 11:33:37 --- It's possible d3d8 should return D3D_OK if the surface isn't locked, that would be consistent with the behaviour for e.g. vertex buffers. It's also possible it should return D3DERR_INVALIDCALL and the program simply doesn't recognize the ddraw error code we return. Could you write some tests for that? The behaviour is likely different between ddraw and d3d8/d3d9, so you need tests for all three. d3d10 Unmap() doesn't have a return code.