diff --git a/scripts/win_compile.sh b/scripts/win_compile.sh
index 5ac4377e54b4a20acb1bd9724d4be11651dfaba7..d56285e18412d21d939ac06e564d4af6b703a958 100755
--- a/scripts/win_compile.sh
+++ b/scripts/win_compile.sh
@@ -51,7 +51,7 @@ cd $rootdir
 
 cd client-windows
 git submodule update --init
-if [ ! -f "../daemon/_win32/bin/WinSparkle.dll" ]
+if [ ! -f "../daemon/_win${ARCH}/bin/WinSparkle.dll" ]
 then
 cd winsparkle
 git submodule init && git submodule update
@@ -61,7 +61,7 @@ make -j4 || exit 1
 make install
 cd ../../
 fi
-if [ ! -f "../daemon/_win32/bin/libqrencode.dll" ]
+if [ ! -f "../daemon/_win${ARCH}/bin/libqrencode.dll" ]
 then
 cd libqrencode
 ./autogen.sh || exit 1