"Robert Simpson" <[EMAIL PROTECTED]> wrote:
> 
> in os_win.c theres:
> 
> static int winFileHandle(OsFile *id){
>   return (int)((winFile*)id)->h;
> }
> 
> This won't fly on 64-bit platforms.  Windows file handles are declared as 
> HANDLE which is an alias for "void *".  int's are 32-bits in 64-bit Windows 
> and will cause a pointer truncation.
> 

The FileHandle method is used for debugging purposes only.
It is never called in a production environment.  So as long
as it compiles, it should work.

> 
> Also, on Windows CE, LOCKFILE_FAIL_IMMEDIATELY does not exist.  It's defined 
> in winbase.h as:
> 
> #define LOCKFILE_FAIL_IMMEDIATELY 0x00000001
> 

http://www.sqlite.org/cvstrac/chngview?cn=2875
--
D. Richard Hipp <[EMAIL PROTECTED]>

Reply via email to