diff options
Diffstat (limited to 'db3x_autobackups/init.c')
-rw-r--r-- | db3x_autobackups/init.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/db3x_autobackups/init.c b/db3x_autobackups/init.c index 7b60ab5..51d7bfe 100644 --- a/db3x_autobackups/init.c +++ b/db3x_autobackups/init.c @@ -40,7 +40,7 @@ static int getCapability( int flag ) // returns 0 if the profile is created, EMKPRF*
static int makeDatabase(char * profile, int * error)
{
- HANDLE hFile=CreateFile(profile, GENERIC_READ|GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL);
+ HANDLE hFile = CreateFileA(profile, GENERIC_READ|GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL);
if ( hFile != INVALID_HANDLE_VALUE ) {
CreateDbHeaders(hFile);
CloseHandle(hFile);
@@ -59,7 +59,7 @@ static int grokHeader( char * profile, int * error ) HANDLE hFile = INVALID_HANDLE_VALUE;
DWORD dummy=0;
- hFile = CreateFile(profile, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
+ hFile = CreateFileA(profile, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
if ( hFile == INVALID_HANDLE_VALUE ) {
if ( error != NULL ) *error=EGROKPRF_CANTREAD;
return 1;
@@ -156,12 +156,11 @@ static PLUGININFOEX pluginInfo = { "bio@msx.ru; ghazan@miranda-im.org; mail@scottellis.com.au",
"Copyright 2000-2007 Miranda IM project; Autobackups Copyright 2007 Scott Ellis",
"",
- 0,
+ UNICODE_AWARE,
DEFMOD_DB,
{ 0x9407902, 0x9b9b, 0x4f14, { 0xba, 0x18, 0xf6, 0x10, 0xbc, 0x1f, 0xde, 0x5f }} // {09407902-9B9B-4f14-BA18-F610BC1FDE5F}
};
-
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
{
g_hInst=hInstDLL;
|