Re: cabinent: add a comment about parm passing

2007-06-28 Thread Jeff L
James Hawkins wrote: On 6/27/07, Jeff Latimer <[EMAIL PROTECTED]> wrote: Coverity CID 43 Forward_Null is false. This adds a comment explaining the NULL pass is ok. Why do we need a comment for that? Mainly because the logic is a bit difficult. It depends on the length being 0 to terminate th

Re: gdiplus: added stub implementation of gdiplus.dll

2007-06-08 Thread Jeff L
James Hawkins wrote: On 5/25/07, Andrey Turkin <[EMAIL PROTECTED]> wrote: James Hawkins wrote: > On 5/25/07, Mounir IDRASSI <[EMAIL PROTECTED]> wrote: >> Hi, >> You also have to modify other files in order to integrate your stub >> implementation to the wine build chain: Makefile.in, configure a

Re: gdiplus: added stub implementation of gdiplus.dll

2007-05-26 Thread Jeff L
James Hawkins wrote: On 5/25/07, Andrey Turkin <[EMAIL PROTECTED]> wrote: James Hawkins wrote: > On 5/25/07, Mounir IDRASSI <[EMAIL PROTECTED]> wrote: >> Hi, >> You also have to modify other files in order to integrate your stub >> implementation to the wine build chain: Makefile.in, configure a

Re: hnetcfg: [resend 2] 1/6 uuids for INetFwMgr interface

2007-05-22 Thread Jeff L
Robert Shearman wrote: Jeff Latimer wrote: +OUR_GUID_ENTRY(IID_INetFwMgr,0xf7898af5, 0xcac4, 0x4632, 0xa2, 0xec, 0xda ,0x06, 0xe5, 0x11, 0x1a, 0xf2) +OUR_GUID_ENTRY(CLSID_NetFwMgr, 0x304ce942, 0x6e39, 0x40d8, 0x94, 0x3a, 0xb9, 0x13, 0xc4, 0x0c, 0x9c

Re: hnetcfg: [resend 2] 3/6 add local header file

2007-05-22 Thread Jeff L
Michael Stefaniuc wrote: Jeff Latimer wrote: --- dlls/hnetcfg/hnetcfg_dll.h | 70 + +/* __stdcall HNETCFG_HNetDeleteRasConnection(); */ It's only the comments but why don't you use WINAPI instead of __stdcall? bye michael This is more a ca

Re: hnetcfg: [3/8] uuids for INetFwMgr interface

2007-05-17 Thread Jeff L
For dlls, should the GUID's be put in uuids.h or kept local to the dll. In this case I don't think anything else cares about them, so they could be local. Jeff Latimer Jeff Latimer wrote: Add public uuids for the interface. ---

Re: hnetcfg: [1:10]Define icftype.idl

2007-05-09 Thread Jeff L
Alexandre Julliard wrote: There's no reason to initialize the enum values explicitly, particularly since all your values are wrong... My mistake. I had not got to a point where they were used, so they were untested. The reason I initialised them in the first place I was worried about copyrigh

Re: wineshelllink: fall back to $HOME if $HOME/Desktop does not exist

2007-04-21 Thread Jeff L
James Hawkins wrote: On 4/20/07, Jeff L <[EMAIL PROTECTED]> wrote: James Hawkins wrote: >> >> Is there a reason why we should not just create a Desktop directory? >> Seems neater than cluttering up the home. >> > I sure wouldn't want some app creating a De

Re: wineshelllink: fall back to $HOME if $HOME/Desktop does not exist

2007-04-20 Thread Jeff L
James Hawkins wrote: Is there a reason why we should not just create a Desktop directory? Seems neater than cluttering up the home. I sure wouldn't want some app creating a Desktop directory in my home folder if it didn't exist before. I don't know which is better, a lot of files appearing in

Re: wineshelllink: fall back to $HOME if $HOME/Desktop does not exist

2007-04-20 Thread Jeff L
Lei Zhang wrote: Hi, As reported in bug 7373, some people do not have a Desktop directory in their home directory. Wineshelllink should fall back to putting .desktop files in the home directory if the Desktop directory does not exist. Is there a reason why we should not just create a Desktop dir

Whats the approved technique to restier a dll in registry

2007-04-20 Thread Jeff L
There seems to be two ways to do this, add the entries to wine.inf or set the dll up as self registering. There are examples of both in wine and the discussion seems to favour self registering but people still seem to be adding registry entries to wine.inf. A bit of guidance would be apprecia

Re: Writing IDL and other definition files

2007-03-05 Thread Jeff L
Robert Shearman wrote: Jeff L wrote: I am looking at writing a piece of IDL and a header file I am wrestling with how to do it without infringing copyright. IDL looks particularly hard to write from first principles and is probably hard to write in a different way as the functions being

Writing IDL and other definition files

2007-03-05 Thread Jeff L
I am looking at writing a piece of IDL and a header file I am wrestling with how to do it without infringing copyright. IDL looks particularly hard to write from first principles and is probably hard to write in a different way as the functions being implemented are defined and require IDL sim

Re: 1/4 NtCreateMailslotFile tests

2007-02-19 Thread Jeff L
[EMAIL PROTECTED] wrote: > Microsoft > appears to be pushing people away from NtClose. I'd suggest you to find a reason why. That particular documentation happens to be part of the API released under court order. They didn't want to give it out to begin with, and they don't want people using i

Re: Resend 1/4 NtCreateMailslotFile tests

2007-02-17 Thread Jeff L
Eric Pouech wrote: Jeff Latimer a écrit : Establish the framework for testing NtCreateMailslotFile. Have fixed issues with NTSTATUS return codes etc. those tests belong to dlls/ntdll, not dlls/kernel32 also, if the test is for ntdll functions, it shouldn't use kernel32 ones... hence, NtClose

Re: 1/4 NtCreateMailslotFile tests

2007-02-17 Thread Jeff L
Dmitry Timoshkov wrote: "Jeff L" <[EMAIL PROTECTED]> wrote: To close the handle returned by an NT API you have you use an NT API as well. What is not apparent in the explanation above? I have no problem with what you have said though I did have a bit of difficulty marrying

Re: 1/4 NtCreateMailslotFile tests

2007-02-17 Thread Jeff L
Dmitry Timoshkov wrote: "Jeff Latimer" <[EMAIL PROTECTED]> wrote: +ok( CloseHandle(hslot), "CloseHandle failed\n"); To close the handle returned by an NT API you have you use an NT API as well. Have reread MSDN http://msdn2.microsoft.com/en-us/library/ms648410.aspx and it seems that NtClos

Re: git question

2007-02-16 Thread Jeff L
Joris Huizer wrote: git fetch; git rebase origin Have you committed all updates before you git rebase origin? git commit -a -m "all"; git rebase origin; git reset HEAD^ Jeff Latimer

doc: Add a Quick start to the Wine User Guide

2007-02-11 Thread Jeff L
This change came about when a friend described his problems in getting wine going to see if it would help him with making a Windows app run under Linux. He did not want to get into the details of wine as his was a opportunistic need and his comment that hit home was "that many a newbie expects

Re: Tests for NtCreateMailslotFile

2007-01-24 Thread Jeff L
Vitaliy Margolen wrote: Jeff Latimer wrote: This is the first of some tests for NtCreateMailslotFile. I have included them in kernel32/tests as I thought it better that the Mailslot tests be collocated. Why do you need to test NtCreateMailslotFile directly? Why can't you use CreateMai

IDropTarget code location

2007-01-04 Thread Jeff L
Can anyone point me the location of the code that implements the IDropTarget class used by OLE2? Jeff

Re: Uniscribe improvements

2007-01-02 Thread Jeff L
* * wrote: "If the device context is passed as NULL and Uniscribe needs to access it for any reason, Uniscribe returns the error code E_PENDING. This code is returned quickly, allowing the application to avoid time-consuming SelectObject calls." Whereas the current implementation will silently a

Re: Uniscribe improvements

2007-01-02 Thread Jeff L
* * wrote: According to MSDN, the "pending" error is to give the calling app a chance to select the matching font back into the DC if the information wasn't cached. I think that the get_script_cache function is broken, in that it should return the pending error if the HDC isn't provided, since

Re: ntdll: remove an unnecessary NULL check : Coverity

2007-01-02 Thread Jeff L
Dmitry Timoshkov wrote: NtCreateMailslotFile is a public API, so probably it should handle the case when attr is NULL. I see the same problem at least in NtCreateNamedPipeFile. In general, handling of OBJECT_ATTRIBUTES in ntdll is not consistent, but fixing it properly most likely a test is n

Re: ntdll: remove an unnecessary NULL check : Coverity

2007-01-01 Thread Jeff L
Jeff L wrote: Dmitry Timoshkov wrote: Yes, 'attr' is used without a NULL check earlier, but that's an actual bug, and that's where the code needs to be fixed. So in this case my change is ok for the tidy up that it is, it just that there is another problem. Is this

Re: ntdll: remove an unnecessary NULL check : Coverity

2007-01-01 Thread Jeff L
Dmitry Timoshkov wrote: "Jeff Latimer" <[EMAIL PROTECTED]> wrote: Coverity Cid:344 highlighted a REVERSE-INULL. This patch removes the redundant null tests as it is clear from the code above that the pointer has already been used to dereference and can't be null. Yes, 'attr' is used without

Re: usp10 #1/2: create HandleTables to keep track of memory allocation.

2006-11-08 Thread Jeff L
Rob, as the HandleTable was your suggestion, could you provide a comment on whether these patches are a practical way forward? Jeff Latimer Jeff Latimer wrote: These 2 patches implement HandleTables for tracking memory usage for the SCRIPT_STRING_ANALYSIS pointer. The problem is that the ssa

Re: Tracking memory allocation

2006-11-03 Thread Jeff L
Robert Shearman wrote: although it sounds as though handle tables aren't really the way to go for what you need. I have the this working now. Ta. Table may be ok for the function. Will submit a patch soon and see whether it is elegant enough as a way forward. Jeff Latimer

Re: Tracking memory allocation

2006-11-03 Thread Jeff L
Robert Shearman wrote: Yes, it does. You can look at dlls/ntdll/tests/rtl.c to see how the functions can be used. Looking at the tests as example it seems that you need to run InitFunctionPtrs() to set up pointers to the functions. I would want to do this in DllMain() as part of DLL_PROCESS_AT

Re: Tracking memory allocation

2006-10-27 Thread Jeff L
Robert Shearman wrote: Jeff L wrote: Robert Shearman wrote: Yes, it does. You can look at dlls/ntdll/tests/rtl.c to see how the functions can be used. Yep can see how that works now. If I run out of handles, how do I reallocate the table or add to it? You can't. It is intended

Re: Tracking memory allocation

2006-10-26 Thread Jeff L
Robert Shearman wrote: Jeff L wrote: It seems that this would not be a unique problem in wine, is there a standard way to handle memory tracking so that if memory is freed, at a later time we can check to see if the pointer is still valid? It sounds like you could benefit from using the

Tracking memory allocation

2006-10-21 Thread Jeff L
I am looking at how to track whether memory has been allocated or freed. The SCRIPT_STRING_ANALYSIS opaque point in usp10 can be freed in a number of places. It seems that Windows handles this by checking a list of allocated storage as the passed value of a SCRIPT_STRING_ANALYSIS could be inv

todo_wine problems

2006-09-30 Thread Jeff L
I am having trouble with getting todo_wine working. It seems to be ignored and the test is being executed on wine and failing as expected. Is there a trick to setting todo up? According to all the examples and the text this should work: todo_wine { ok(hr == S_OK, "Scr

Recovering a patch accidentally removed by git reset

2006-09-20 Thread Jeff L
How do you get a patch back that you have managed to remove completely from your system with a git reset HEAD^ git reset git checkout patchname ? git fetch does not seem to refresh the patch from the repository. I was going fairly well with git then stuffed this up. Jeff

Visual C++ does not seem to have snprinft

2006-09-07 Thread Jeff L
When compiling dlls/gdi/tests/metafile.c on line 1357 I get a warning C4013: "snprintf" is undefined. Looking around, it seems that snprinft is in fact _snprintf in Visual C++. I have found a define #if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF) #define snprintf _snprintf

Font metrics

2006-08-08 Thread Jeff L
People, I am working on ScriptStringXtoCP etc in usp10.  In setting up the tests for this I notice that ABC widths returned ScriptPlace (GetCharABCWidthsI) is not the same as Windows does.  Have tried an couple of fonts and the results are the subtly different.  Before I get too carried away wi

usp10: resend Remove a test that fails on Windows

2006-08-01 Thread Jeff L
This patch fixes a problem where a test fails in windows. It may also fix a problem with 64 bit code but I am unable to test that. I does this by declaring the HDC as global so it can be reused between test runs in test_ScriptItemIzeShapePlace and test_ScriptGetCMap. Change log: Fix glyph compa

usp10: Remove a test that fails on Windows

2006-08-01 Thread Jeff L
This patch fixes a problem where a test fails in windows. It may also fix a problem with 64 bit code but I am unable to test that. I does this by declaring the HDC as global so it can be reused between test runs in test_ScriptItemIzeShapePlace and test_ScriptGetCMap. Change log: Fix glyph co

Indentifying Unicode scripts

2006-07-29 Thread Jeff L
As part of implementing uniscribe, I am looking at breaking down strings into their various unicode scripts (ie. numeric, arabic etc). The first step is to identify the scripts in the string. The simple approach is for me to code some ranges and check which script a character belongs to. I a

usp10: Remove the need to pass chars to ScriptPlace

2006-04-20 Thread Jeff L
This patch uses GetCharABCWidthsI to remove the need to pass chars from ScriptShape to ScriptPlace in the scriptcache work space. Change log: Remove the need to pass chars from ScriptShape to ScriptPlace Jeff Latimer Index: dlls/usp10/usp10.c

Floating point problem in WineEngGetGlyphOutline

2006-03-06 Thread Jeff L
I have started to get a floating point problem "First chance exception: invalid float operation in 32-bit code (0x00e6b6f9).". I don't know a lot about floating point but from what I have read, the FLDCW most likely is unmasking an interrupt when it reloads the control word. Winedbg does not

[usp10] Add ScriptItemize, ScriptShape and ScriptPlace functionality

2006-02-10 Thread Jeff L
Is there anything wrong with this patch? It does not seem to have been applied. Jeff L

Accessing gdi32.dll functions from another dll

2006-01-20 Thread Jeff L
I need a bit of help with the correct way to do this. In usp10.c I need to access GetGlyphIndicesW. Given that it is part of gdi32, I assume that I will need to reference the function in the gdi32.dll rahter than linking it into usp10.dll. What is the approved method of setting up the access

Accessing gdi32.dll functions from another dll

2006-01-20 Thread Jeff L
I need a bit of help with the correct way to do this. In usp10.c I need to access GetGlyphIndicesW. Given that it is part of gdi32, I assume that I will need to reference the function in the gdi32.dll rahter than linking it into usp10.dll. What is the approved method of setting up the access?