+#if defined( UNDER_CE )
+ if (szPath[0] == '\\' || szPath[0] == '/')
+ {
+ sprintf (szFullPath, "%s", szPath);
+ szFullPath[0] = '\\';
+ }
+ else
+ {
+ wchar_t szFullPathTmp[MAX_PATH];
+ if (GetModuleFileName( NULL, szFullPathTmp, MAX_PATH ) )
+ {
+ wcstombs( szFullPath, szFullPathTmp, MAX_PATH );
+ szFullPath[MAX_PATH-1] = 0;
+ }
+ else
+ {
+ /* FIXME: if I wasn't lazy, I'd check for overflows here. */
+ sprintf (szFullPath, "\\%s", szPath );
+ }
+ }
+#else