Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2010-12-07 03:33:25 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:06:43 +0300
commitd294d56ad9c7947cb2c4fd14a3a11a7354045dce (patch)
treec1a6e1b045d8bd7506063c3a6ddf06b5c7c8883b /platform
parent47320758ce88a8f11ad43508d2d925dba8103ac2 (diff)
[Windows] Fixed build errors
Diffstat (limited to 'platform')
-rw-r--r--platform/platform_tests/platform_tests.pro4
-rw-r--r--platform/qtplatform.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/platform/platform_tests/platform_tests.pro b/platform/platform_tests/platform_tests.pro
index a52f769ce7..54baf02656 100644
--- a/platform/platform_tests/platform_tests.pro
+++ b/platform/platform_tests/platform_tests.pro
@@ -10,6 +10,10 @@ include($$ROOT_DIR/common.pri)
QT *= core network
+win32 {
+ LIBS += -lShell32
+}
+
SOURCES += \
../../testing/testingmain.cpp \
platform_test.cpp \
diff --git a/platform/qtplatform.cpp b/platform/qtplatform.cpp
index e7aa9300b2..a954b5efc9 100644
--- a/platform/qtplatform.cpp
+++ b/platform/qtplatform.cpp
@@ -126,7 +126,7 @@ static bool GetPathToBinary(string & outPath)
#if defined(OMIM_OS_WINDOWS)
// get path to executable
char pathBuf[MAX_PATH] = {0};
- if (0 == ::GetModuleFileNameA(NULL, path, MAX_PATH))
+ if (0 < ::GetModuleFileNameA(NULL, pathBuf, MAX_PATH))
{
outPath = pathBuf;
return true;