diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-11-21 13:10:31 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-11-21 13:10:31 +0000 |
commit | fbc3a8fbf75f69d14ef8f545a7e43425db4eaaf7 (patch) | |
tree | 8ac91de364988140233a487d510bbcbf339e6a9f /db3x_autobackups/init.c | |
parent | 778273f4cf7d1e2d41eeec5355d7fb749a0526b6 (diff) |
sync with core
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@386 4f64403b-2f21-0410-a795-97e2b3489a10
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;
|