Index: SQLite.Interop/src/win/interop.c ================================================================== --- SQLite.Interop/src/win/interop.c +++ SQLite.Interop/src/win/interop.c @@ -791,11 +791,16 @@ if( argc!=1 ){ sqlite3_result_error(context, "need exactly one argument", -1); return; } m = sqlite3_value_int(argv[0]); +#if SQLITE_OS_WINCE + Sleep(m); + sqlite3_result_int(context, WAIT_OBJECT_0); +#else sqlite3_result_int(context, SleepEx(m, TRUE)); +#endif } /* SQLite invokes this routine once when it loads the extension. ** Create new functions, collating sequences, and virtual table ** modules here. This is usually the only exported symbol in