diff options
| author | joost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-03-29 10:21:06 +0000 |
|---|---|---|
| committer | joost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-03-29 10:21:06 +0000 |
| commit | 97b4be0da6d1a156565d558427427f6c954c3b96 (patch) | |
| tree | 7db0d4ff64a00ce485896437eb627b069c7f66c0 /packages/mysql | |
| parent | 281899be79db262c4a22f022f1e3d0c72dc3bad6 (diff) | |
| download | fpc-97b4be0da6d1a156565d558427427f6c954c3b96.tar.gz | |
* Refactored so that identation-style is consistent within the unit
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@12976 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/mysql')
| -rw-r--r-- | packages/mysql/src/mysql.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/mysql/src/mysql.inc b/packages/mysql/src/mysql.inc index 29e8039ffc..33dd1bc2c4 100644 --- a/packages/mysql/src/mysql.inc +++ b/packages/mysql/src/mysql.inc @@ -1511,7 +1511,7 @@ Function TryInitialiseMysql(Const LibraryName: String; argc: cint; argv: PPchar; begin Result := 0; if (RefCount=0) then - begin + begin MysqlLibraryHandle := loadlibrary(LibraryName); if (MysqlLibraryHandle=nilhandle) then Exit; @@ -1621,7 +1621,8 @@ begin if mysql_library_init(argc, argv, groups) <> 0 then Exit; - end else + end + else inc(RefCount); Result:=RefCount; |
